From 50f1b26603922dfb60a45ae94283882f41acc61b Mon Sep 17 00:00:00 2001 From: Ablyakim Ablyalimov Date: Tue, 20 Aug 2024 06:32:46 +0300 Subject: [PATCH] fix(php): Update syntax for anonymous functions - 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). --- queries/php/textobjects.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/php/textobjects.scm b/queries/php/textobjects.scm index 4b0237b8..09bdbd59 100644 --- a/queries/php/textobjects.scm +++ b/queries/php/textobjects.scm @@ -12,7 +12,7 @@ (function_definition) @function.outer -(anonymous_function_creation_expression +(anonymous_function body: (compound_statement . "{" @@ -23,7 +23,7 @@ "}" (#make-range! "function.inner" @_start @_end))) -(anonymous_function_creation_expression) @function.outer +(anonymous_function) @function.outer ; methods (method_declaration