Skip to content

Commit 41e3abf

Browse files
authored
fix(php): Update syntax for anonymous functions (#673)
- Renamed `anonymous_function_creation_expression` to `anonymous_function` to align with the upstream change in tree-sitter-php (see tree-sitter/tree-sitter-php#247).
1 parent ced6375 commit 41e3abf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

queries/php/textobjects.scm

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
(function_definition) @function.outer
1414

15-
(anonymous_function_creation_expression
15+
(anonymous_function
1616
body: (compound_statement
1717
.
1818
"{"
@@ -23,7 +23,7 @@
2323
"}"
2424
(#make-range! "function.inner" @_start @_end)))
2525

26-
(anonymous_function_creation_expression) @function.outer
26+
(anonymous_function) @function.outer
2727

2828
; methods
2929
(method_declaration

0 commit comments

Comments
 (0)