feat: add vento support (#6261)

This commit is contained in:
Matthew Taylor 2024-03-18 05:00:22 -04:00 committed by GitHub
parent e6d80e5efd
commit 2014f8285e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 35 additions and 0 deletions

View file

@ -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)

View file

@ -752,6 +752,9 @@
"vala": {
"revision": "8f690bfa639f2b83d1fb938ed3dd98a7ba453e8b"
},
"vento": {
"revision": "c1eb14b130c37267be7c6bb38ce949c3077dd4b3"
},
"verilog": {
"revision": "2dfddfcb891f74a1cdb9d8ce480a997d11846e17"
},

View file

@ -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",

View file

@ -0,0 +1,13 @@
(comment) @comment @spell
(keyword) @keyword
(tag
[
"{{"
"{{-"
"}}"
"-}}"
] @punctuation.special)
"|>" @operator

View file

@ -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"))