aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/fish/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/fish/highlights.scm b/queries/fish/highlights.scm
index 8d97d9a61..a7c451175 100644
--- a/queries/fish/highlights.scm
+++ b/queries/fish/highlights.scm
@@ -106,7 +106,7 @@
])
(command_substitution
- "$" @punctuation.bracket)
+ "$" @punctuation.special)
; non-builtin command names
(command
@@ -157,6 +157,9 @@
(variable_expansion) @constant
+(variable_expansion
+ "$" @punctuation.special) @none
+
; Reference: https://fishshell.com/docs/current/language.html#special-variables
((variable_name) @variable.builtin
(#any-of? @variable.builtin