Add support for raw C++ strings in c-family highlighting
This commit is contained in:
parent
c4db46b58b
commit
3e4e4f6210
|
@ -133,11 +133,12 @@ def -hidden c-family-insert-on-newline %[ eval -draft %[
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf %s\\n '
|
printf %s\\n '
|
||||||
add-highlighter -group / regions -default code FT \
|
add-highlighter -group / regions -default code -match-capture FT \
|
||||||
string %{MAYBEAT(?<!QUOTE)"} %{(?<!\\)(\\\\)*"} "" \
|
string %{MAYBEAT(?<!QUOTE)"} %{(?<!\\)(?:\\\\)*"} "" \
|
||||||
|
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)?" \
|
||||||
macro %{^\h*?\K#} %{(?<!\\)\n} ""
|
macro %{^\h*?\K#} %{(?<!\\)\n} ""
|
||||||
|
|
||||||
add-highlighter -group /FT/string fill string
|
add-highlighter -group /FT/string fill string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user