1
0
mirror of https://github.com/helix-editor/helix synced 2026-05-04 17:40:38 +02:00
Files
helix/runtime/queries/glsl/highlights.scm
may 2f6d0d5010 update glsl grammar, adjust and add queries (#15245)
* lang(glsl): update grammar

* tags(glsl): add tags queries

* indents(glsl): just inherit them from the c language

glsl is mostly identical to c, save for a few somewhat minor extensions,
so maintaining separate indent queries from c is pointless.

* rainbows(glsl): add rainbow queries

* chore: cargo xtask docgen
2026-03-14 11:22:58 -05:00

42 lines
496 B
Scheme

; inherits: c
[
"in"
"out"
"inout"
"uniform"
"shared"
"layout"
"attribute"
"varying"
"buffer"
"coherent"
"readonly"
"writeonly"
"precision"
"highp"
"mediump"
"lowp"
"centroid"
"sample"
"patch"
"smooth"
"flat"
"noperspective"
"invariant"
"precise"
"require"
"enable"
"warn"
"disable"
] @keyword
"subroutine" @keyword.function
(extension_storage_class) @attribute
(
(identifier) @variable.builtin
(#match? @variable.builtin "^gl_")
)