Skip to content

Commit b0a47da

Browse files
committed
Prefer #any-of? predicate over #match?
See elixir-lang/tree-sitter-elixir#80
1 parent be312bc commit b0a47da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

queries/erlang/injections.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
expr: (remote
33
module: (remote_module
44
module: (atom) @module (#eq? @module "arizona_render"))
5-
fun: (atom) @fun (#match? @fun "^view_template|component_template$"))
5+
fun: (atom) @fun (#any-of? @fun "view_template" "component_template"))
66
args: (expr_args
77
args: (var)
88
args: (var)

0 commit comments

Comments
 (0)