diff options
| author | kghugo <hugosum.dev@protonmail.com> | 2021-09-18 21:15:37 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-19 14:19:20 +0200 |
| commit | d5e87dde100a5a3377043fc55846c97b03b6b01f (patch) | |
| tree | 5cfb7c9c15dff4898f7be77e6eafe7ef7d96754f /queries/hjson | |
| parent | highlights(c): add __attribute__ (diff) | |
| download | nvim-treesitter-d5e87dde100a5a3377043fc55846c97b03b6b01f.tar nvim-treesitter-d5e87dde100a5a3377043fc55846c97b03b6b01f.tar.gz nvim-treesitter-d5e87dde100a5a3377043fc55846c97b03b6b01f.tar.bz2 nvim-treesitter-d5e87dde100a5a3377043fc55846c97b03b6b01f.tar.lz nvim-treesitter-d5e87dde100a5a3377043fc55846c97b03b6b01f.tar.xz nvim-treesitter-d5e87dde100a5a3377043fc55846c97b03b6b01f.tar.zst nvim-treesitter-d5e87dde100a5a3377043fc55846c97b03b6b01f.zip | |
Support hjson
Diffstat (limited to 'queries/hjson')
| -rw-r--r-- | queries/hjson/folds.scm | 1 | ||||
| -rw-r--r-- | queries/hjson/highlights.scm | 16 | ||||
| -rw-r--r-- | queries/hjson/indents.scm | 3 | ||||
| -rw-r--r-- | queries/hjson/injections.scm | 1 | ||||
| -rw-r--r-- | queries/hjson/locals.scm | 1 |
5 files changed, 22 insertions, 0 deletions
diff --git a/queries/hjson/folds.scm b/queries/hjson/folds.scm new file mode 100644 index 000000000..41269219e --- /dev/null +++ b/queries/hjson/folds.scm @@ -0,0 +1 @@ +; inherits: json diff --git a/queries/hjson/highlights.scm b/queries/hjson/highlights.scm new file mode 100644 index 000000000..c8eed139f --- /dev/null +++ b/queries/hjson/highlights.scm @@ -0,0 +1,16 @@ +(true) @boolean +(false) @boolean +(null) @constant.builtin +(number) @number +(pair key: (string) @label) +(pair value: (string) @string) +(array (string) @string) +; (string_content (escape_sequence) @string.escape) +(ERROR) @error +; "," @punctuation.delimiter +"[" @punctuation.bracket +"]" @punctuation.bracket +"{" @punctuation.bracket +"}" @punctuation.bracket + +(comment) @comment diff --git a/queries/hjson/indents.scm b/queries/hjson/indents.scm new file mode 100644 index 000000000..26a42eeda --- /dev/null +++ b/queries/hjson/indents.scm @@ -0,0 +1,3 @@ +; inherits: json + +(comment) @ignore diff --git a/queries/hjson/injections.scm b/queries/hjson/injections.scm new file mode 100644 index 000000000..4bb7d675d --- /dev/null +++ b/queries/hjson/injections.scm @@ -0,0 +1 @@ +(comment) @comment diff --git a/queries/hjson/locals.scm b/queries/hjson/locals.scm new file mode 100644 index 000000000..41269219e --- /dev/null +++ b/queries/hjson/locals.scm @@ -0,0 +1 @@ +; inherits: json |
