fish.kak: do not use shell expansion for highlighting
This commit is contained in:
parent
0fcdbfbdd9
commit
83592f5285
|
@ -27,8 +27,8 @@ addhl -group /fish/comment fill comment
|
||||||
|
|
||||||
addhl -group /fish/code regex (\$\w+)|(\{\$\w+\}) 0:identifier
|
addhl -group /fish/code regex (\$\w+)|(\{\$\w+\}) 0:identifier
|
||||||
|
|
||||||
# Command names generated by fish
|
# Command names are collected using `builtin --names` and 'eval' from `functions --names`
|
||||||
addhl -group /fish/code regex %sh{ printf '\<(%s)\>' $(printf '\Q%s\\E|' $(fish --command 'builtin --names' --command 'functions --names' | tr --delete ,)) } 0:keyword
|
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
|
# Commands
|
||||||
# ‾‾‾‾‾‾‾‾
|
# ‾‾‾‾‾‾‾‾
|
||||||
|
|
Loading…
Reference in New Issue
Block a user