summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2014-07-05 00:49:51 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2014-07-05 01:00:43 +0200
commit83592f52858a8cd987dc0a3a2af9f37932e2b8a2 (patch)
tree2e0a9a8150dd5407b69f6c0d3654aaa6e8a15b96
parent0fcdbfbdd9064e7851e5460eb1bd3f16c4e8574f (diff)
fish.kak: do not use shell expansion for highlighting
-rw-r--r--rc/fish.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/fish.kak b/rc/fish.kak
index f0e2fd8e..48607b20 100644
--- a/rc/fish.kak
+++ b/rc/fish.kak
@@ -27,8 +27,8 @@ addhl -group /fish/comment fill comment
addhl -group /fish/code regex (\$\w+)|(\{\$\w+\}) 0:identifier
-# Command names generated by fish
-addhl -group /fish/code regex %sh{ printf '\<(%s)\>' $(printf '\Q%s\\E|' $(fish --command 'builtin --names' --command 'functions --names' | tr --delete ,)) } 0:keyword
+# Command names are collected using `builtin --names` and 'eval' from `functions --names`
+addhl -group /fish/code regex \<(and|begin|bg|bind|block|break|breakpoint|builtin|case|cd|command|commandline|complete|contains|continue|count|echo|else|emit|end|eval|exec|exit|fg|for|function|functions|history|if|jobs|not|or|printf|pwd|random|read|return|set|set_color|source|status|switch|test|ulimit|while)\> 0:keyword
# Commands
# ‾‾‾‾‾‾‾‾