aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Taylor <wrapperup4@gmail.com>2024-03-18 05:00:22 -0400
committerGitHub <noreply@github.com>2024-03-18 10:00:22 +0100
commit2014f8285e306f4c8a896c7d3af53fdd599e5a4f (patch)
treef33e0387d19edebfbe90a510b4e24e7cad9a8299
parentbot(lockfile): update arduino, cmake, dtd, http, mlir, ocaml, ocaml_interface... (diff)
downloadnvim-treesitter-2014f8285e306f4c8a896c7d3af53fdd599e5a4f.tar
nvim-treesitter-2014f8285e306f4c8a896c7d3af53fdd599e5a4f.tar.gz
nvim-treesitter-2014f8285e306f4c8a896c7d3af53fdd599e5a4f.tar.bz2
nvim-treesitter-2014f8285e306f4c8a896c7d3af53fdd599e5a4f.tar.lz
nvim-treesitter-2014f8285e306f4c8a896c7d3af53fdd599e5a4f.tar.xz
nvim-treesitter-2014f8285e306f4c8a896c7d3af53fdd599e5a4f.tar.zst
nvim-treesitter-2014f8285e306f4c8a896c7d3af53fdd599e5a4f.zip
feat: add vento support (#6261)
-rw-r--r--README.md1
-rw-r--r--lockfile.json3
-rw-r--r--lua/nvim-treesitter/parsers.lua9
-rw-r--r--queries/vento/highlights.scm13
-rw-r--r--queries/vento/injections.scm9
5 files changed, 35 insertions, 0 deletions
diff --git a/README.md b/README.md
index 496a9a82b..0dc48866b 100644
--- a/README.md
+++ b/README.md
@@ -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"))