diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | lockfile.json | 3 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 9 | ||||
| -rw-r--r-- | queries/vento/highlights.scm | 13 | ||||
| -rw-r--r-- | queries/vento/injections.scm | 9 |
5 files changed, 35 insertions, 0 deletions
@@ -424,6 +424,7 @@ We are looking for maintainers to add more parsers and to write query files for - [x] [uxn tal](https://github.com/amaanq/tree-sitter-uxntal) (maintained by @amaanq) - [x] [v](https://github.com/vlang/v-analyzer) (maintained by @kkharji, @amaanq) - [x] [vala](https://github.com/vala-lang/tree-sitter-vala) (maintained by @Prince781) +- [x] [vento](https://github.com/ventojs/tree-sitter-vento) (maintained by @wrapperup, @oscarotero) - [x] [verilog](https://github.com/tree-sitter/tree-sitter-verilog) (maintained by @zegervdv) - [x] [vhs](https://github.com/charmbracelet/tree-sitter-vhs) (maintained by @caarlos0) - [x] [vim](https://github.com/neovim/tree-sitter-vim) (maintained by @clason) diff --git a/lockfile.json b/lockfile.json index 4636d756b..9fbe30bd1 100644 --- a/lockfile.json +++ b/lockfile.json @@ -752,6 +752,9 @@ "vala": { "revision": "8f690bfa639f2b83d1fb938ed3dd98a7ba453e8b" }, + "vento": { + "revision": "c1eb14b130c37267be7c6bb38ce949c3077dd4b3" + }, "verilog": { "revision": "2dfddfcb891f74a1cdb9d8ce480a997d11846e17" }, diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 1d587cdfa..c7010e10c 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -2183,6 +2183,15 @@ list.vala = { maintainers = { "@Prince781" }, } +list.vento = { + install_info = { + url = "https://github.com/ventojs/tree-sitter-vento", + files = { "src/parser.c", "src/scanner.c" }, + }, + filetype = "vto", + maintainers = { "@wrapperup", "@oscarotero" }, +} + list.verilog = { install_info = { url = "https://github.com/tree-sitter/tree-sitter-verilog", diff --git a/queries/vento/highlights.scm b/queries/vento/highlights.scm new file mode 100644 index 000000000..9d35b2f66 --- /dev/null +++ b/queries/vento/highlights.scm @@ -0,0 +1,13 @@ +(comment) @comment @spell + +(keyword) @keyword + +(tag + [ + "{{" + "{{-" + "}}" + "-}}" + ] @punctuation.special) + +"|>" @operator diff --git a/queries/vento/injections.scm b/queries/vento/injections.scm new file mode 100644 index 000000000..66023c7f8 --- /dev/null +++ b/queries/vento/injections.scm @@ -0,0 +1,9 @@ +((comment) @injection.content + (#set! injection.language "comment")) + +((content) @injection.content + (#set! injection.language "html") + (#set! injection.combined)) + +((code) @injection.content + (#set! injection.language "javascript")) |
