c-family.kak: Fix highlighting of raw strings

This commit is contained in:
Maxime Coste 2018-04-21 12:42:16 +10:00
parent 0b773ac26c
commit fea6bc9524

View File

@ -135,7 +135,7 @@ define-command -hidden c-family-insert-on-newline %[ evaluate-commands -draft %[
printf %s\\n ' printf %s\\n '
add-highlighter shared/ regions -default code -match-capture FT \ add-highlighter shared/ regions -default code -match-capture FT \
string %{MAYBEAT(?<!QUOTE)(?<!QUOTE\\)"} %{(?<!\\)(?:\\\\)*"} "" \ string %{MAYBEAT(?<!QUOTE)(?<!QUOTE\\)"} %{(?<!\\)(?:\\\\)*"} "" \
string %{R"([^(]*)\(} %{\)([^)]*)"} "" \ string %{R"([^(]*)\(} %{\)([^"]*)"} "" \
comment /\* \*/ "" \ comment /\* \*/ "" \
comment // $ "" \ comment // $ "" \
disabled ^\h*?#\h*if\h+(?:0|FALSE)\b "#\h*(?:else|elif|endif)" "#\h*if(?:def)?" \ disabled ^\h*?#\h*if\h+(?:0|FALSE)\b "#\h*(?:else|elif|endif)" "#\h*if(?:def)?" \