1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-19 01:11:36 +03:00

cpp.kak: grey out code in #if 0

This commit is contained in:
Maxime Coste 2014-09-26 00:32:08 +01:00
parent 9beba90060
commit ba3c18e674

View File

@ -43,10 +43,12 @@ addhl -group / regions -default code cpp \
string %{(?<!')"} %{(?<!\\)(\\\\)*"} '' \
comment /\* \*/ '' \
comment // $ '' \
disabled ^\h*?#if\h+(0|FALSE)\b '#endif' '#if(def)?' \
macro ^\h*?\K# (?<!\\)\n ''
addhl -group /cpp/string fill string
addhl -group /cpp/comment fill comment
addhl -group /cpp/disabled fill rgb:666666
addhl -group /cpp/macro fill meta
addhl -group /cpp/code regex "\<(this|true|false|NULL|nullptr|)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" 0:value