mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
parsers: add glsl parser
This commit is contained in:
parent
4b3d58d39c
commit
dea66fb4ce
6 changed files with 52 additions and 0 deletions
|
|
@ -85,6 +85,15 @@ list.cuda = {
|
||||||
maintainers = { "@theHamsta" },
|
maintainers = { "@theHamsta" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.glsl = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/theHamsta/tree-sitter-glsl",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
generate_requires_npm = true,
|
||||||
|
},
|
||||||
|
maintainers = { "@theHamsta" },
|
||||||
|
}
|
||||||
|
|
||||||
list.dockerfile = {
|
list.dockerfile = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
||||||
|
|
|
||||||
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