mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04: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:
parent
c5623d3486
commit
857fb97bb6
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue