aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/php
diff options
context:
space:
mode:
authorAndrey Tkachenko2022-05-23 12:24:30 +0000
committerBlaž Hrastnik2022-05-25 12:26:06 +0000
commit10463fe32c789f49c65d53c9d22621e415a854ea (patch)
tree610d40f68cc6d314c2a3dba658faf440389728ef /runtime/queries/php
parentda2952725880d132fdfc2117dedebfe56ffdb646 (diff)
Add `parameter.around` text object query
Diffstat (limited to 'runtime/queries/php')
-rw-r--r--runtime/queries/php/textobjects.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/runtime/queries/php/textobjects.scm b/runtime/queries/php/textobjects.scm
index 51abe5c7..e35eebd7 100644
--- a/runtime/queries/php/textobjects.scm
+++ b/runtime/queries/php/textobjects.scm
@@ -21,13 +21,19 @@
(anonymous_function_creation_expression
body: (_) @function.inside) @function.around
-
+
+(anonymous_function_use_clause
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
(formal_parameters
- [
+ ([
(simple_parameter)
(variadic_parameter)
(property_promotion_parameter)
- ] @parameter.inside)
+ ] @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(arguments
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside