mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
feat: add ungrammar
This commit is contained in:
parent
20a8f30ace
commit
fe80f7c2bb
8 changed files with 58 additions and 0 deletions
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