diff options
author | Erasin | 2023-02-12 20:03:02 +0000 |
---|---|---|
committer | GitHub | 2023-02-12 20:03:02 +0000 |
commit | c71b4c5579fdc753e62300f5ee6ca5e747a98e13 (patch) | |
tree | de58f120b19bc5de70b9096d79c3d3bd8912b3bf /runtime/queries/godot-resource | |
parent | ef221abe83862cfdfcce358bbecc14080824abdb (diff) |
Update grammar for godot (#5944)
* update grammar for gdscript.
* add comment injections for gdscript.
* add indent for gdscript
* add file-type support for godot-resource
Diffstat (limited to 'runtime/queries/godot-resource')
-rw-r--r-- | runtime/queries/godot-resource/highlights.scm | 3 | ||||
-rw-r--r-- | runtime/queries/godot-resource/injections.scm | 2 |
2 files changed, 4 insertions, 1 deletions
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")) |