fish.kak: do not treat escaped quotes as region start

Just like in sh.kak, for example:

	echo \" \\\" this should not be highlighted
This commit is contained in:
Johannes Altmanninger 2020-06-11 20:02:52 +02:00
parent 8b3696982f
commit 7e50bdbf2f

View File

@ -33,8 +33,8 @@ 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 (?<!\\)(?:\\\\)*\K" (?<!\\)(\\\\)*" group
add-highlighter shared/fish/single_string region "'" (?<!\\)(\\\\)*' fill string add-highlighter shared/fish/single_string region (?<!\\)(?:\\\\)*\K' (?<!\\)(\\\\)*' 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