helix-mirror/runtime/queries/godot-resource/injections.scm

19 lines
410 B
Scheme
Raw Normal View History

((comment) @injection.content
(#set! injection.language "comment"))
2023-03-05 22:41:18 +04:00
; ((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")
)