c-family.kak: Do not mistake '\"' for a double quoted string start

Fixes #1893
This commit is contained in:
Maxime Coste 2018-03-01 14:01:09 +11:00
parent e39e91049c
commit 5c247bf1dd

View File

@ -134,7 +134,7 @@ define-command -hidden c-family-insert-on-newline %[ evaluate-commands -draft %[
printf %s\\n '
add-highlighter shared/ regions -default code -match-capture FT \
string %{MAYBEAT(?<!QUOTE)"} %{(?<!\\)(?:\\\\)*"} "" \
string %{MAYBEAT(?<!QUOTE)(?<!QUOTE\\)"} %{(?<!\\)(?:\\\\)*"} "" \
string %{R"([^(]*)\(} %{\)([^)]*)"} "" \
comment /\* \*/ "" \
comment // $ "" \