cpp.kak: #if 0 stop at next endif or else or elif

This commit is contained in:
Maxime Coste 2014-10-01 23:29:32 +01:00
parent 3ea690a92e
commit cf01227e1c

View File

@ -43,7 +43,7 @@ addhl -group / regions -default code cpp \
string %{(?<!')"} %{(?<!\\)(\\\\)*"} '' \ string %{(?<!')"} %{(?<!\\)(\\\\)*"} '' \
comment /\* \*/ '' \ comment /\* \*/ '' \
comment // $ '' \ comment // $ '' \
disabled ^\h*?#if\h+(0|FALSE)\b '#endif' '#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 ''
addhl -group /cpp/string fill string addhl -group /cpp/string fill string