mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
parsers: add HLSL
This commit is contained in:
parent
d76b0de653
commit
29cf3fe42a
6 changed files with 38 additions and 0 deletions
|
|
@ -171,6 +171,15 @@ list.glsl = {
|
|||
maintainers = { "@theHamsta" },
|
||||
}
|
||||
|
||||
list.hlsl = {
|
||||
install_info = {
|
||||
url = "https://github.com/theHamsta/tree-sitter-hlsl",
|
||||
files = { "src/parser.c", "src/scanner.cc" },
|
||||
generate_requires_npm = true,
|
||||
},
|
||||
maintainers = { "@theHamsta" },
|
||||
}
|
||||
|
||||
list.dockerfile = {
|
||||
install_info = {
|
||||
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
||||
|
|
|
|||
1
queries/hlsl/folds.scm
Normal file
1
queries/hlsl/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: cpp
|
||||
23
queries/hlsl/highlights.scm
Normal file
23
queries/hlsl/highlights.scm
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
; inherits: cpp
|
||||
|
||||
[
|
||||
"in"
|
||||
"out"
|
||||
"inout"
|
||||
"uniform"
|
||||
"shared"
|
||||
"groupshared"
|
||||
"discard"
|
||||
"cbuffer"
|
||||
"nointerpolation"
|
||||
"row_major"
|
||||
"column_major"
|
||||
] @keyword
|
||||
|
||||
(
|
||||
(identifier) @variable.builtin
|
||||
(#lua-match? @variable.builtin "^SV_")
|
||||
)
|
||||
|
||||
(hlsl_attribute) @attribute
|
||||
(hlsl_attribute ["[" "]"] @attribute)
|
||||
1
queries/hlsl/indents.scm
Normal file
1
queries/hlsl/indents.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: cpp
|
||||
3
queries/hlsl/injections.scm
Normal file
3
queries/hlsl/injections.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(preproc_arg) @hlsl
|
||||
|
||||
(comment) @comment
|
||||
1
queries/hlsl/locals.scm
Normal file
1
queries/hlsl/locals.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: cpp
|
||||
Loading…
Add table
Add a link
Reference in a new issue