mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
parsers: add HLSL
This commit is contained in:
parent
d76b0de653
commit
29cf3fe42a
6 changed files with 38 additions and 0 deletions
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