diff options
| author | Hugo Osvaldo Barrera <hugo@barrera.io> | 2021-02-15 18:35:13 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-02-15 21:45:16 +0100 |
| commit | 33a7a694d9b1dabf6b066c8ed542a175b563cd65 (patch) | |
| tree | d29c2a95c56cb1a97fb7b63ad543c44336dee5b5 | |
| parent | 2655fc94b0dd077e90c72b8d11038435c14640b2 (diff) | |
Add support for JSONC
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 7 | ||||
| -rw-r--r-- | queries/jsonc/folds.scm | 1 | ||||
| -rw-r--r-- | queries/jsonc/highlights.scm | 3 | ||||
| -rw-r--r-- | queries/jsonc/indents.scm | 1 | ||||
| -rw-r--r-- | queries/jsonc/locals.scm | 1 |
5 files changed, 13 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index deb56bbf..e6fc0914 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -303,6 +303,13 @@ list.vue = { } } +list.jsonc = { + install_info = { + url = "https://gitlab.com/WhyNotHugo/tree-sitter-jsonc.git", + files = { "src/parser.c" }, + } +} + list.elm = { install_info = { url = "https://github.com/elm-tooling/tree-sitter-elm", diff --git a/queries/jsonc/folds.scm b/queries/jsonc/folds.scm new file mode 100644 index 00000000..41269219 --- /dev/null +++ b/queries/jsonc/folds.scm @@ -0,0 +1 @@ +; inherits: json diff --git a/queries/jsonc/highlights.scm b/queries/jsonc/highlights.scm new file mode 100644 index 00000000..a51c5c7e --- /dev/null +++ b/queries/jsonc/highlights.scm @@ -0,0 +1,3 @@ +; inherits: json + +(comment) @comment diff --git a/queries/jsonc/indents.scm b/queries/jsonc/indents.scm new file mode 100644 index 00000000..41269219 --- /dev/null +++ b/queries/jsonc/indents.scm @@ -0,0 +1 @@ +; inherits: json diff --git a/queries/jsonc/locals.scm b/queries/jsonc/locals.scm new file mode 100644 index 00000000..41269219 --- /dev/null +++ b/queries/jsonc/locals.scm @@ -0,0 +1 @@ +; inherits: json |
