mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat(luap): highlights more consistent with regex (#5819)
This commit is contained in:
parent
454c3a9ba8
commit
1c619f5f20
2 changed files with 11 additions and 9 deletions
|
|
@ -1,9 +1,10 @@
|
|||
"." @character
|
||||
|
||||
[
|
||||
(anchor_begin)
|
||||
(anchor_end)
|
||||
] @string.escape
|
||||
] @punctuation.delimiter
|
||||
|
||||
(pattern
|
||||
(character "." @variable.builtin))
|
||||
|
||||
[
|
||||
"[" "]"
|
||||
|
|
@ -19,17 +20,17 @@
|
|||
|
||||
(range
|
||||
from: (character) @constant
|
||||
"-" @punctuation.delimiter
|
||||
"-" @operator
|
||||
to: (character) @constant)
|
||||
|
||||
(set
|
||||
(character) @constant)
|
||||
(negated_set
|
||||
(character) @constant)
|
||||
|
||||
(class) @keyword
|
||||
|
||||
(negated_set
|
||||
"^" @operator
|
||||
(character) @constant)
|
||||
(negated_set "^" @operator)
|
||||
|
||||
(balanced_match
|
||||
(character) @parameter)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@
|
|||
[ "*" "+" "?" "|" "=" "!" "-"] @operator
|
||||
|
||||
[
|
||||
(any_character)
|
||||
(start_assertion)
|
||||
(end_assertion)
|
||||
] @variable.builtin
|
||||
] @punctuation.delimiter
|
||||
|
||||
(any_character) @variable.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue