mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
feat(fish): highlight $ punctuation.special
This commit is contained in:
parent
54fc8e311c
commit
684eeac91e
1 changed files with 4 additions and 1 deletions
|
|
@ -106,7 +106,7 @@
|
||||||
])
|
])
|
||||||
|
|
||||||
(command_substitution
|
(command_substitution
|
||||||
"$" @punctuation.bracket)
|
"$" @punctuation.special)
|
||||||
|
|
||||||
; non-builtin command names
|
; non-builtin command names
|
||||||
(command
|
(command
|
||||||
|
|
@ -157,6 +157,9 @@
|
||||||
|
|
||||||
(variable_expansion) @constant
|
(variable_expansion) @constant
|
||||||
|
|
||||||
|
(variable_expansion
|
||||||
|
"$" @punctuation.special) @none
|
||||||
|
|
||||||
; Reference: https://fishshell.com/docs/current/language.html#special-variables
|
; Reference: https://fishshell.com/docs/current/language.html#special-variables
|
||||||
((variable_name) @variable.builtin
|
((variable_name) @variable.builtin
|
||||||
(#any-of? @variable.builtin
|
(#any-of? @variable.builtin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue