mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(regex): more accurate highlights for named backreferences
Highlight both surrounding angle brackets, and only apply the operator highlight to the actual \k operator.
This commit is contained in:
parent
c91122d201
commit
eab2005cb5
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
|||
"(?"
|
||||
"(?:"
|
||||
"(?<"
|
||||
"<"
|
||||
">"
|
||||
"["
|
||||
"]"
|
||||
|
|
@ -39,7 +40,7 @@
|
|||
"="
|
||||
"!"
|
||||
"-"
|
||||
(backreference_escape)
|
||||
"\\k"
|
||||
(lazy)
|
||||
] @operator
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue