diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-06-15 01:15:25 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-19 15:05:33 -0700 |
| commit | 29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa (patch) | |
| tree | d671fe721bba57a26f37a079763fbdf5b6c0895d /queries | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa.tar nvim-treesitter-29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa.tar.gz nvim-treesitter-29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa.tar.bz2 nvim-treesitter-29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa.tar.lz nvim-treesitter-29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa.tar.xz nvim-treesitter-29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa.tar.zst nvim-treesitter-29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa.zip | |
parsers: add HLSL
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/hlsl/folds.scm | 1 | ||||
| -rw-r--r-- | queries/hlsl/highlights.scm | 23 | ||||
| -rw-r--r-- | queries/hlsl/indents.scm | 1 | ||||
| -rw-r--r-- | queries/hlsl/injections.scm | 3 | ||||
| -rw-r--r-- | queries/hlsl/locals.scm | 1 |
5 files changed, 29 insertions, 0 deletions
diff --git a/queries/hlsl/folds.scm b/queries/hlsl/folds.scm new file mode 100644 index 000000000..b617fdc56 --- /dev/null +++ b/queries/hlsl/folds.scm @@ -0,0 +1 @@ +; inherits: cpp diff --git a/queries/hlsl/highlights.scm b/queries/hlsl/highlights.scm new file mode 100644 index 000000000..d6e083cd3 --- /dev/null +++ b/queries/hlsl/highlights.scm @@ -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) diff --git a/queries/hlsl/indents.scm b/queries/hlsl/indents.scm new file mode 100644 index 000000000..b617fdc56 --- /dev/null +++ b/queries/hlsl/indents.scm @@ -0,0 +1 @@ +; inherits: cpp diff --git a/queries/hlsl/injections.scm b/queries/hlsl/injections.scm new file mode 100644 index 000000000..537ae542d --- /dev/null +++ b/queries/hlsl/injections.scm @@ -0,0 +1,3 @@ +(preproc_arg) @hlsl + +(comment) @comment diff --git a/queries/hlsl/locals.scm b/queries/hlsl/locals.scm new file mode 100644 index 000000000..b617fdc56 --- /dev/null +++ b/queries/hlsl/locals.scm @@ -0,0 +1 @@ +; inherits: cpp |
