helix-mirror/runtime/queries/gdscript/textobjects.scm

29 lines
535 B
Scheme
Raw Normal View History

2022-09-10 17:47:08 +04:00
(class_definition
(body) @class.inside) @class.around
(function_definition
(body) @function.inside) @function.around
(lambda (body) @function.inside) @function.around
2022-09-10 17:47:08 +04:00
(parameters
[
(identifier)
(typed_parameter)
(default_parameter)
(typed_default_parameter)
] @parameter.inside @parameter.around)
(arguments (_expression) @parameter.inside @parameter.around)
[
(const_statement)
(variable_statement)
(pair)
(enumerator)
] @entry.around
2022-09-10 17:47:08 +04:00
(comment) @comment.inside
(comment)+ @comment.around