diff options
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/gdscript/indents.scm | 35 | ||||
-rw-r--r-- | runtime/queries/gdscript/injections.scm | 2 | ||||
-rw-r--r-- | runtime/queries/godot-resource/highlights.scm | 3 | ||||
-rw-r--r-- | runtime/queries/godot-resource/injections.scm | 2 |
4 files changed, 41 insertions, 1 deletions
diff --git a/runtime/queries/gdscript/indents.scm b/runtime/queries/gdscript/indents.scm new file mode 100644 index 00000000..1ab41a44 --- /dev/null +++ b/runtime/queries/gdscript/indents.scm @@ -0,0 +1,35 @@ +[ + (if_statement) + (for_statement) + (while_statement) + (match_statement) + (pattern_section) + + (function_definition) + (constructor_definition) + (class_definition) + (enum_definition) + + (dictionary (_)) + (array (_)) +] @indent + +[ + (if_statement) + (for_statement) + (while_statement) + (match_statement) + (pattern_section) + + (function_definition) + (class_definition) +] @extend + + +[ + (return_statement) + (break_statement) + (continue_statement) + (pass_statement) +] @extend.prevent-once + diff --git a/runtime/queries/gdscript/injections.scm b/runtime/queries/gdscript/injections.scm new file mode 100644 index 00000000..321c90ad --- /dev/null +++ b/runtime/queries/gdscript/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) diff --git a/runtime/queries/godot-resource/highlights.scm b/runtime/queries/godot-resource/highlights.scm index 18dae41f..d8a69f65 100644 --- a/runtime/queries/godot-resource/highlights.scm +++ b/runtime/queries/godot-resource/highlights.scm @@ -25,4 +25,5 @@ "=" @operator -(ERROR) @error
\ No newline at end of file +(ERROR) @error +(comment) @comment diff --git a/runtime/queries/godot-resource/injections.scm b/runtime/queries/godot-resource/injections.scm new file mode 100644 index 00000000..321c90ad --- /dev/null +++ b/runtime/queries/godot-resource/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) |