mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
410 B
Scheme
19 lines
410 B
Scheme
((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")
|
|
)
|