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
This commit is contained in:
Johannes Altmanninger 2020-05-16 22:08:13 +02:00
parent aad20f6576
commit bb865a18c1

View File

@ -34,7 +34,7 @@ provide-module fish %{
add-highlighter shared/fish regions add-highlighter shared/fish regions
add-highlighter shared/fish/code default-region group add-highlighter shared/fish/code default-region group
add-highlighter shared/fish/double_string 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/comment region '#' '$' fill comment
add-highlighter shared/fish/double_string/ fill string add-highlighter shared/fish/double_string/ fill string