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:
Riley Bruins 2024-11-07 11:57:45 -08:00 committed by Christian Clason
parent c91122d201
commit eab2005cb5

View file

@ -6,6 +6,7 @@
"(?" "(?"
"(?:" "(?:"
"(?<" "(?<"
"<"
">" ">"
"[" "["
"]" "]"
@ -39,7 +40,7 @@
"=" "="
"!" "!"
"-" "-"
(backreference_escape) "\\k"
(lazy) (lazy)
] @operator ] @operator