mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
feat: add luap
This commit is contained in:
parent
d4e48be88d
commit
c9d7918901
4 changed files with 48 additions and 0 deletions
35
queries/luap/highlights.scm
Normal file
35
queries/luap/highlights.scm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
"." @character
|
||||
|
||||
[
|
||||
(anchor_begin)
|
||||
(anchor_end)
|
||||
] @string.escape
|
||||
|
||||
[
|
||||
"[" "]"
|
||||
"(" ")"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
(zero_or_more)
|
||||
(shortest_zero_or_more)
|
||||
(one_or_more)
|
||||
(zero_or_one)
|
||||
] @operator
|
||||
|
||||
(range
|
||||
from: (character) @constant
|
||||
"-" @punctuation.delimiter
|
||||
to: (character) @constant)
|
||||
|
||||
(set
|
||||
(character) @constant)
|
||||
|
||||
(class) @keyword
|
||||
|
||||
(negated_set
|
||||
"^" @operator
|
||||
(character) @constant)
|
||||
|
||||
(balanced_match
|
||||
(character) @parameter)
|
||||
Loading…
Add table
Add a link
Reference in a new issue