mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
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:
committed by
Christian Clason
parent
c5623d3486
commit
857fb97bb6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user