Unnamed repository; edit this file 'description' to name the repository.
Add argument to textobject in gdscript. (#9288)
Currently `maa` only selects parameters in a function definition. Allow it to also select arguments inside a function call.
Ryan Roden-Corrent 2024-01-28
parent ee68fd0 · commit fe44391
-rw-r--r--runtime/queries/gdscript/textobjects.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/queries/gdscript/textobjects.scm b/runtime/queries/gdscript/textobjects.scm
index 08954468..47512bba 100644
--- a/runtime/queries/gdscript/textobjects.scm
+++ b/runtime/queries/gdscript/textobjects.scm
@@ -13,5 +13,7 @@
(typed_default_parameter)
] @parameter.inside @parameter.around)
+(arguments (_expression) @parameter.inside @parameter.around)
+
(comment) @comment.inside
(comment)+ @comment.around