Skip to content

Commit

Permalink
fix(php): Update syntax for anonymous functions (#673)
Browse files Browse the repository at this point in the history
- 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).
  • Loading branch information
Ablyakim authored Aug 20, 2024
1 parent ced6375 commit 41e3abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queries/php/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

(function_definition) @function.outer

(anonymous_function_creation_expression
(anonymous_function
body: (compound_statement
.
"{"
Expand All @@ -23,7 +23,7 @@
"}"
(#make-range! "function.inner" @_start @_end)))

(anonymous_function_creation_expression) @function.outer
(anonymous_function) @function.outer

; methods
(method_declaration
Expand Down

0 comments on commit 41e3abf

Please sign in to comment.