aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/godot-resource/injections.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/godot-resource/injections.scm')
-rw-r--r--runtime/queries/godot-resource/injections.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/queries/godot-resource/injections.scm b/runtime/queries/godot-resource/injections.scm
index 321c90ad..7929d63c 100644
--- a/runtime/queries/godot-resource/injections.scm
+++ b/runtime/queries/godot-resource/injections.scm
@@ -1,2 +1,18 @@
((comment) @injection.content
(#set! injection.language "comment"))
+
+; ((section) @injection.content
+; (#set! injection.language "comment"))
+
+((section
+ (attribute
+ (identifier) @_type
+ (string) @_is_shader)
+ (property
+ (path) @_is_code
+ (string) @injection.content))
+ (#match? @_type "type")
+ (#match? @_is_shader "Shader")
+ (#eq? @_is_code "code")
+ (#set! injection.language "glsl")
+)