feat: add ungrammar

This commit is contained in:
Philipp Mildenberger 2023-02-20 18:05:10 +01:00 committed by Amaan Qureshi
parent 20a8f30ace
commit fe80f7c2bb
8 changed files with 58 additions and 0 deletions

View file

@ -325,6 +325,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [turtle](https://github.com/BonaBeavis/tree-sitter-turtle) (maintained by @BonaBeavis)
- [x] [twig](https://github.com/gbprod/tree-sitter-twig) (maintained by @gbprod)
- [x] [typescript](https://github.com/tree-sitter/tree-sitter-typescript) (maintained by @steelsojka)
- [x] [ungrammar](https://github.com/Philipp-M/tree-sitter-ungrammar) (maintained by @Philipp-M, @amaanq)
- [x] [v](https://github.com/vlang/vls) (maintained by @kkharji)
- [x] [vala](https://github.com/vala-lang/tree-sitter-vala) (maintained by @Prince781)
- [x] [verilog](https://github.com/tree-sitter/tree-sitter-verilog) (maintained by @zegervdv)

View file

@ -455,6 +455,9 @@
"typescript": {
"revision": "5d20856f34315b068c41edaee2ac8a100081d259"
},
"ungrammar": {
"revision": "5275e45d1edb16aab4f0d63a3aa15b61ef033a9c"
},
"v": {
"revision": "136f3a0ad91ab8a781c2d4eb419df0a981839f69"
},

View file

@ -1451,6 +1451,14 @@ list.typescript = {
maintainers = { "@steelsojka" },
}
list.ungrammar = {
install_info = {
url = "https://github.com/Philipp-M/tree-sitter-ungrammar",
files = { "src/parser.c" },
},
maintainers = { "@Philipp-M", "@amaanq" },
}
list.v = {
install_info = {
url = "https://github.com/vlang/vls",

View file

@ -0,0 +1 @@
(node) @fold

View file

@ -0,0 +1,30 @@
(comment) @comment
(definition) @keyword
(identifier) @variable
(label_name) @label
(token) @string
[
"="
"|"
] @operator
[
"*"
"?"
] @repeat
[
":"
] @punctuation.delimiter
[
"("
")"
] @punctuation.bracket
(ERROR) @error

View file

@ -0,0 +1,6 @@
(node) @indent
[
(ERROR)
(comment)
] @auto

View file

@ -0,0 +1,2 @@
(comment) @comment

View file

@ -0,0 +1,7 @@
(grammar) @scope
(definition) @definition
(label_name) @definition.label
(identifier) @reference