1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-29 14:44:56 +03:00

Fix (again) C++ raw string highlighting

This commit is contained in:
Maxime Coste 2018-04-25 18:45:58 +10:00
parent 2d96fbed7c
commit f99f0020dc

View File

@ -135,7 +135,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)(?<!QUOTE\\)"} %{(?<!\\)(?:\\\\)*"} "" \
string %{R"([^(]*)\(} %{\)([^"]*)"} "" \
string %{R"([^(]*)\(} %{\)([^")]*)"} "" \
comment /\* \*/ "" \
comment // $ "" \
disabled ^\h*?#\h*if\h+(?:0|FALSE)\b "#\h*(?:else|elif|endif)" "#\h*if(?:def)?" \