fix(fennel): highlight $[1-9] in multi-symbol context properly

Highlights the dollar symbol properly in multi-symbol contexts, like `$3.some.properties`.
There was already a fix for a similar issue on #8067, but it only addressed `$.some.properties`, but not the variant with the argument number in it.
This commit is contained in:
Alexei Mozaidze
2025-12-03 20:32:06 +04:00
committed by Christian Clason
parent c5623d3486
commit 857fb97bb6

View File

@@ -102,13 +102,13 @@
])
((symbol) @variable.parameter
(#any-of? @variable.parameter "$" "$..."))
(#lua-match? @variable.parameter "^%$[1-9]?$"))
((symbol_fragment) @variable.parameter
(#eq? @variable.parameter "$"))
(#lua-match? @variable.parameter "^%$[1-9]?$"))
((symbol) @variable.parameter
(#lua-match? @variable.parameter "^%$[1-9]$"))
(#eq? @variable.parameter "$..."))
((symbol) @operator
(#any-of? @operator