diff options
| author | Tomas Sandven <tomas@sandven.email> | 2021-07-19 07:44:03 +0200 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-07-19 16:03:27 +0000 |
| commit | a6121f014d2e75bd9eab23082d0f6e02b46ae092 (patch) | |
| tree | bd460f25280ec4722a3402a2796d263035a714a6 /queries | |
| parent | Use terraform ft for tf and tfvars (diff) | |
| download | nvim-treesitter-a6121f014d2e75bd9eab23082d0f6e02b46ae092.tar nvim-treesitter-a6121f014d2e75bd9eab23082d0f6e02b46ae092.tar.gz nvim-treesitter-a6121f014d2e75bd9eab23082d0f6e02b46ae092.tar.bz2 nvim-treesitter-a6121f014d2e75bd9eab23082d0f6e02b46ae092.tar.lz nvim-treesitter-a6121f014d2e75bd9eab23082d0f6e02b46ae092.tar.xz nvim-treesitter-a6121f014d2e75bd9eab23082d0f6e02b46ae092.tar.zst nvim-treesitter-a6121f014d2e75bd9eab23082d0f6e02b46ae092.zip | |
Add YANG parser
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/yang/highlights.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/queries/yang/highlights.scm b/queries/yang/highlights.scm new file mode 100644 index 000000000..82ae8d5bd --- /dev/null +++ b/queries/yang/highlights.scm @@ -0,0 +1,29 @@ + +(comment) @comment + +; Module / submodule +["module" "submodule"] @keyword + +; Keywords +(statement_keyword) @keyword +(extension_keyword) @string.escape + +; Arguments +(built_in_type) @type.builtin +(integer) @number +(boolean) @boolean +(date) @number +(range) @string.escape +(unquoted_range) @string.escape +(yang_version) @string.escape +(identifier) @variable +(node_identifier) @variable +(glob) @string +(string) @string +(unquoted_string) @string +(keypath) @string.escape + +; Punctuation +(plus_symbol) @punctuation.delimiter +["{" "}"] @punctuation.bracket +[";"] @punctuation.delimiter |
