diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2020-05-16 22:08:13 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2020-05-28 21:49:47 +0200 |
| commit | bb865a18c1ff29ea7fe8535cf4e4425c110d0bbf (patch) | |
| tree | ee2a434585bc31fac4613d527aa26f6499368fb6 | |
| parent | aad20f6576aefa581a1a108722c347a56935e015 (diff) | |
fish.kak: fix highlighting for single quoted strings
fish allows to escape single quotes within single quoted strings,
just like double quotes in double quoted strings.
https://fishshell.com/docs/current/index.html#quotes
| -rw-r--r-- | rc/filetype/fish.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/fish.kak b/rc/filetype/fish.kak index 89c6c8f3..6fd34c4d 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 |
