aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/godot-resource
diff options
context:
space:
mode:
authorErasin Wang2023-03-05 18:41:18 +0000
committerGitHub2023-03-05 18:41:18 +0000
commite6597bc9927c73800d31d4a45dc695a4abe77ec8 (patch)
tree4e1d028d109a7f187777be36e439d0426054c6fd /runtime/queries/godot-resource
parentdef26966d22dfc4b9a74e51542db246ba52f3dc9 (diff)
Update queries for godot4 (#6186)
Diffstat (limited to 'runtime/queries/godot-resource')
-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")
+)