diff options
author | Erasin Wang | 2023-03-05 18:41:18 +0000 |
---|---|---|
committer | GitHub | 2023-03-05 18:41:18 +0000 |
commit | e6597bc9927c73800d31d4a45dc695a4abe77ec8 (patch) | |
tree | 4e1d028d109a7f187777be36e439d0426054c6fd /runtime/queries/godot-resource | |
parent | def26966d22dfc4b9a74e51542db246ba52f3dc9 (diff) |
Update queries for godot4 (#6186)
Diffstat (limited to 'runtime/queries/godot-resource')
-rw-r--r-- | runtime/queries/godot-resource/injections.scm | 16 |
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") +) |