aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/godot-resource
diff options
context:
space:
mode:
authorErasin2022-09-10 13:45:52 +0000
committerGitHub2022-09-10 13:45:52 +0000
commit54e78dd24f2cfcf98a974d6f4d5846cc1cb5c9eb (patch)
tree87e7fea9eccf79090fad5e0f04dfc513a5dbf926 /runtime/queries/godot-resource
parent5489c9ad4e66af24165b9bc6d37a05275ccd19b4 (diff)
Add godot resource support (#3759)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/godot-resource')
-rw-r--r--runtime/queries/godot-resource/highlights.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/runtime/queries/godot-resource/highlights.scm b/runtime/queries/godot-resource/highlights.scm
new file mode 100644
index 00000000..18dae41f
--- /dev/null
+++ b/runtime/queries/godot-resource/highlights.scm
@@ -0,0 +1,28 @@
+(section (identifier) @type.builtin)
+
+(attribute (identifier) @attribute)
+(property (path) @variable.other.member)
+(constructor (identifier) @constructor)
+
+(string) @string
+(integer) @constant.numeric.integer
+(float) @constant.numeric.float
+
+(true) @constant.builtin.boolean
+(false) @constant.builtin.boolean
+
+[
+ "["
+ "]"
+] @tag
+
+[
+ "("
+ ")"
+ "{"
+ "}"
+] @punctuation.bracket
+
+"=" @operator
+
+(ERROR) @error \ No newline at end of file