2023-02-12 21:03:02 +01:00
|
|
|
((comment) @injection.content
|
|
|
|
(#set! injection.language "comment"))
|
2023-03-05 19:41:18 +01:00
|
|
|
|
|
|
|
; ((section) @injection.content
|
|
|
|
; (#set! injection.language "comment"))
|
|
|
|
|
|
|
|
((section
|
|
|
|
(attribute
|
|
|
|
(identifier) @_type
|
|
|
|
(string) @_is_shader)
|
|
|
|
(property
|
|
|
|
(path) @_is_code
|
|
|
|
(string) @injection.content))
|
2024-07-30 22:52:47 +02:00
|
|
|
(#eq? @_type "type")
|
2023-03-05 19:41:18 +01:00
|
|
|
(#match? @_is_shader "Shader")
|
|
|
|
(#eq? @_is_code "code")
|
|
|
|
(#set! injection.language "glsl")
|
|
|
|
)
|
2024-07-30 22:52:47 +02:00
|
|
|
|
|
|
|
((section
|
|
|
|
(identifier) @_is_resource
|
|
|
|
(property
|
|
|
|
(path) @_is_code
|
|
|
|
(string) @injection.content))
|
|
|
|
(#eq? @_is_resource "resource")
|
|
|
|
(#eq? @_is_code "code")
|
|
|
|
(#set! injection.language "glsl")
|
|
|
|
)
|
|
|
|
|
|
|
|
((section
|
|
|
|
(identifier) @_id
|
|
|
|
(property
|
|
|
|
(path) @_is_expression
|
|
|
|
(string) @injection.content))
|
|
|
|
(#eq? @_id "sub_resource")
|
|
|
|
(#eq? @_is_expression "expression")
|
|
|
|
(#set! injection.language "glsl")
|
|
|
|
)
|
|
|
|
|
|
|
|
((section
|
|
|
|
(attribute
|
|
|
|
(identifier) @_type
|
|
|
|
(string) @_is_shader)
|
|
|
|
(property
|
|
|
|
(path) @_is_code
|
|
|
|
(string) @injection.content))
|
|
|
|
(#eq? @_type "type")
|
|
|
|
(#match? @_is_shader "GDScript")
|
|
|
|
(#eq? @_is_code "script/source")
|
|
|
|
(#set! injection.language "gdscript")
|
|
|
|
)
|