diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-11-07 11:57:45 -0800 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-07 22:06:35 +0100 |
| commit | eab2005cb5a839abb4af9961a76bbf819650a1a9 (patch) | |
| tree | 89fec399a6d1ae24e9b4f22fd4a02a64b9d9eff2 | |
| parent | bot(lockfile): update nu, runescript, superhtml, swift (diff) | |
| download | nvim-treesitter-eab2005cb5a839abb4af9961a76bbf819650a1a9.tar nvim-treesitter-eab2005cb5a839abb4af9961a76bbf819650a1a9.tar.gz nvim-treesitter-eab2005cb5a839abb4af9961a76bbf819650a1a9.tar.bz2 nvim-treesitter-eab2005cb5a839abb4af9961a76bbf819650a1a9.tar.lz nvim-treesitter-eab2005cb5a839abb4af9961a76bbf819650a1a9.tar.xz nvim-treesitter-eab2005cb5a839abb4af9961a76bbf819650a1a9.tar.zst nvim-treesitter-eab2005cb5a839abb4af9961a76bbf819650a1a9.zip | |
fix(regex): more accurate highlights for named backreferences
Highlight both surrounding angle brackets, and only apply the operator
highlight to the actual \k operator.
| -rw-r--r-- | queries/regex/highlights.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/regex/highlights.scm b/queries/regex/highlights.scm index 2cfdf4b01..350d1d0f3 100644 --- a/queries/regex/highlights.scm +++ b/queries/regex/highlights.scm @@ -6,6 +6,7 @@ "(?" "(?:" "(?<" + "<" ">" "[" "]" @@ -39,7 +40,7 @@ "=" "!" "-" - (backreference_escape) + "\\k" (lazy) ] @operator |
