aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Roden-Corrent2024-01-28 09:19:25 +0000
committerGitHub2024-01-28 09:19:25 +0000
commitfe443910160e145c69f32a028b313d6f596e3fbe (patch)
tree7f79a0c49d2f3216e34fa9902c14927ff5f92352
parentee68fd09ac51b613061d6eb0680d8d42cc21260e (diff)
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.
-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