diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2020-09-05 07:36:31 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2020-09-19 08:06:46 +0200 |
| commit | 50775b26e40d119f08f800268c7ebc2b0e6eff1e (patch) | |
| tree | e152679d8f4041ff2ea6aa26fed41d8207806b71 /rc/filetype/fish.kak | |
| parent | dbd7e4da79ff59a63be03c580d3f396657199596 (diff) | |
*sh.kak: do not highlight expansions if their $ is escaped
Diffstat (limited to 'rc/filetype/fish.kak')
| -rw-r--r-- | rc/filetype/fish.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/fish.kak b/rc/filetype/fish.kak index d883c042..80c677b9 100644 --- a/rc/filetype/fish.kak +++ b/rc/filetype/fish.kak @@ -38,9 +38,9 @@ add-highlighter shared/fish/single_string region (?<!\\)(?:\\\\)*\K' (?<!\\)(\\\ add-highlighter shared/fish/comment region (?<!\\)(?:\\\\)*(?:^|\h)\K# '$' fill comment add-highlighter shared/fish/double_string/ fill string -add-highlighter shared/fish/double_string/ regex (\$\w+)|(\{\$\w+\}) 0:variable +add-highlighter shared/fish/double_string/ regex ((?<!\\)(?:\\\\)*\K\$\w+)|(\{\$\w+\}) 0:variable -add-highlighter shared/fish/code/ regex (\$\w+)|(\{\$\w+\}) 0:variable +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 |
