diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-05-30 09:07:01 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-05-30 09:07:01 +1000 |
| commit | c8fde1bf3313e0a41ba67f52f61756ea174260fc (patch) | |
| tree | 7b7cda051f4d153cb21dc3b075dac42d12a23b62 | |
| parent | d90f8d43247b03a5e24eabb8ef039ebca7f27de4 (diff) | |
| parent | 62f61df08fe2767bd818f8af78c75ad4898a8d3f (diff) | |
Merge remote-tracking branch 'krobelus/01-fish-single-quote-highlighting'
| -rw-r--r-- | rc/filetype/fish.kak | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/filetype/fish.kak b/rc/filetype/fish.kak index 89c6c8f3..ca2e2557 100644 --- a/rc/filetype/fish.kak +++ b/rc/filetype/fish.kak @@ -34,7 +34,7 @@ provide-module fish %{ add-highlighter shared/fish regions add-highlighter shared/fish/code default-region group add-highlighter shared/fish/double_string region '"' (?<!\\)(\\\\)*" group -add-highlighter shared/fish/single_string region "'" "'" fill string +add-highlighter shared/fish/single_string region "'" (?<!\\)(\\\\)*' fill string add-highlighter shared/fish/comment region '#' '$' fill comment add-highlighter shared/fish/double_string/ fill string @@ -42,8 +42,8 @@ add-highlighter shared/fish/double_string/ regex (\$\w+)|(\{\$\w+\}) 0:variable add-highlighter shared/fish/code/ regex (\$\w+)|(\{\$\w+\}) 0:variable -# Command names are collected using `builtin --names` and 'eval' from `functions --names` -add-highlighter shared/fish/code/ regex \b(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)\b 0:keyword +# 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|switch|test|time|ulimit|wait|while)\b 0:keyword # Commands # ‾‾‾‾‾‾‾‾ |
