mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
Regex highlights: Add constant highlight for class_character
This commit is contained in:
parent
e8fa1c2c84
commit
43381c1321
2 changed files with 4 additions and 2 deletions
|
|
@ -114,6 +114,7 @@ are optional and will not have any effect for now.
|
|||
@constant.macro
|
||||
@string
|
||||
@string.regex
|
||||
@string.regex-classchar
|
||||
@string.escape
|
||||
@string.special
|
||||
@character
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@
|
|||
|
||||
;; These are escaped special characters that lost their special meaning
|
||||
;; -> no special highlighting
|
||||
; (identity_escape)
|
||||
(identity_escape) @string.regex
|
||||
|
||||
(class_character) @constant
|
||||
|
||||
[
|
||||
(identity_escape)
|
||||
(control_letter_escape)
|
||||
(character_class_escape)
|
||||
(control_escape)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue