helix-mods/runtime/queries/gdscript/textobjects.scm
Ryan Roden-Corrent fe44391016
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.
2024-01-28 18:19:25 +09:00

19 lines
398 B
Scheme

(class_definition
(body) @class.inside) @class.around
(function_definition
(body) @function.inside) @function.around
(parameters
[
(identifier)
(typed_parameter)
(default_parameter)
(typed_default_parameter)
] @parameter.inside @parameter.around)
(arguments (_expression) @parameter.inside @parameter.around)
(comment) @comment.inside
(comment)+ @comment.around