summaryrefslogtreecommitdiff
path: root/rc/filetype/fish.kak
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2021-03-20 21:03:29 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2021-08-09 22:45:52 +0200
commitfaba50d5287cc55bcb7a21f96e2b023b5e4aeddd (patch)
treeb6e3819ebe61b4e13fe7d09c540e91fe2ce1e0dc /rc/filetype/fish.kak
parent580869fd49e7bef7126b85c143dfca111704eda6 (diff)
rc fish: fix keyword highlighting false positive
"command" is a built-in, but these are not: $command some-command command-some
Diffstat (limited to 'rc/filetype/fish.kak')
-rw-r--r--rc/filetype/fish.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/fish.kak b/rc/filetype/fish.kak
index 1946e889..e15660f4 100644
--- a/rc/filetype/fish.kak
+++ b/rc/filetype/fish.kak
@@ -44,7 +44,7 @@ add-highlighter shared/fish/double_string/ regex ((?<!\\)(?:\\\\)*\K\$\w+)|(\{\$
add-highlighter shared/fish/code/ regex (?<!\\)(?:\\\\)*\K(\$\w+)|(\{\$\w+\}) 0:variable
# Command names are collected using `builtin --names`.
-add-highlighter shared/fish/code/ regex \b(and|argparse|begin|bg|bind|block|break|breakpoint|builtin|case|cd|command|commandline|complete|contains|continue|count|disown|echo|else|emit|end|eval|exec|exit|false|fg|for|function|functions|history|if|jobs|math|not|or|printf|pwd|random|read|realpath|return|set|set_color|source|status|string|switch|test|time|true|ulimit|wait|while)\b 0:keyword
+add-highlighter shared/fish/code/ regex \b(?<![$-])(and|argparse|begin|bg|bind|block|break|breakpoint|builtin|case|cd|command|commandline|complete|contains|continue|count|disown|echo|else|emit|end|eval|exec|exit|false|fg|for|function|functions|history|if|jobs|math|not|or|printf|pwd|random|read|realpath|return|set|set_color|source|status|string|switch|test|time|true|ulimit|wait|while)\b(?!-) 0:keyword
# Commands
# ‾‾‾‾‾‾‾‾