mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
parsers: add glsl parser
This commit is contained in:
parent
4b3d58d39c
commit
dea66fb4ce
6 changed files with 52 additions and 0 deletions
1
queries/glsl/folds.scm
Normal file
1
queries/glsl/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: c
|
||||
37
queries/glsl/highlights.scm
Normal file
37
queries/glsl/highlights.scm
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
; 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"
|
||||
] @keyword
|
||||
|
||||
"subroutine" @keyword.function
|
||||
|
||||
(extension_storage_class) @attribute
|
||||
|
||||
(
|
||||
(identifier) @variable.builtin
|
||||
(#match? @variable.builtin "^gl_")
|
||||
)
|
||||
1
queries/glsl/indents.scm
Normal file
1
queries/glsl/indents.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: c
|
||||
3
queries/glsl/injections.scm
Normal file
3
queries/glsl/injections.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(preproc_arg) @glsl
|
||||
|
||||
(comment) @comment
|
||||
1
queries/glsl/locals.scm
Normal file
1
queries/glsl/locals.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: c
|
||||
Loading…
Add table
Add a link
Reference in a new issue