helix-mods/runtime/queries/gdscript/textobjects.scm
Erasin Wang b19551b11b
Updated Godot support (#11235)
- update gdscript highlights
- add godot-resource textobjects
2024-07-31 05:52:47 +09:00

28 lines
535 B
Scheme

(class_definition
(body) @class.inside) @class.around
(function_definition
(body) @function.inside) @function.around
(lambda (body) @function.inside) @function.around
(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
(comment) @comment.inside
(comment)+ @comment.around