mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
feat: add ungrammar
This commit is contained in:
parent
20a8f30ace
commit
fe80f7c2bb
8 changed files with 58 additions and 0 deletions
|
|
@ -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] [turtle](https://github.com/BonaBeavis/tree-sitter-turtle) (maintained by @BonaBeavis)
|
||||||
- [x] [twig](https://github.com/gbprod/tree-sitter-twig) (maintained by @gbprod)
|
- [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] [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] [v](https://github.com/vlang/vls) (maintained by @kkharji)
|
||||||
- [x] [vala](https://github.com/vala-lang/tree-sitter-vala) (maintained by @Prince781)
|
- [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)
|
- [x] [verilog](https://github.com/tree-sitter/tree-sitter-verilog) (maintained by @zegervdv)
|
||||||
|
|
|
||||||
|
|
@ -455,6 +455,9 @@
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"revision": "5d20856f34315b068c41edaee2ac8a100081d259"
|
"revision": "5d20856f34315b068c41edaee2ac8a100081d259"
|
||||||
},
|
},
|
||||||
|
"ungrammar": {
|
||||||
|
"revision": "5275e45d1edb16aab4f0d63a3aa15b61ef033a9c"
|
||||||
|
},
|
||||||
"v": {
|
"v": {
|
||||||
"revision": "136f3a0ad91ab8a781c2d4eb419df0a981839f69"
|
"revision": "136f3a0ad91ab8a781c2d4eb419df0a981839f69"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1451,6 +1451,14 @@ list.typescript = {
|
||||||
maintainers = { "@steelsojka" },
|
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 = {
|
list.v = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/vlang/vls",
|
url = "https://github.com/vlang/vls",
|
||||||
|
|
|
||||||
1
queries/ungrammar/folds.scm
Normal file
1
queries/ungrammar/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
(node) @fold
|
||||||
30
queries/ungrammar/highlights.scm
Normal file
30
queries/ungrammar/highlights.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
|
(definition) @keyword
|
||||||
|
|
||||||
|
(identifier) @variable
|
||||||
|
|
||||||
|
(label_name) @label
|
||||||
|
|
||||||
|
(token) @string
|
||||||
|
|
||||||
|
[
|
||||||
|
"="
|
||||||
|
"|"
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"*"
|
||||||
|
"?"
|
||||||
|
] @repeat
|
||||||
|
|
||||||
|
[
|
||||||
|
":"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(ERROR) @error
|
||||||
6
queries/ungrammar/indents.scm
Normal file
6
queries/ungrammar/indents.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
(node) @indent
|
||||||
|
|
||||||
|
[
|
||||||
|
(ERROR)
|
||||||
|
(comment)
|
||||||
|
] @auto
|
||||||
2
queries/ungrammar/injections.scm
Normal file
2
queries/ungrammar/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
7
queries/ungrammar/locals.scm
Normal file
7
queries/ungrammar/locals.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
(grammar) @scope
|
||||||
|
|
||||||
|
(definition) @definition
|
||||||
|
|
||||||
|
(label_name) @definition.label
|
||||||
|
|
||||||
|
(identifier) @reference
|
||||||
Loading…
Add table
Add a link
Reference in a new issue