mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 08:51:46 +03:00
cpp.kak: grey out code in #if 0
This commit is contained in:
parent
9beba90060
commit
ba3c18e674
@ -43,10 +43,12 @@ addhl -group / regions -default code cpp \
|
|||||||
string %{(?<!')"} %{(?<!\\)(\\\\)*"} '' \
|
string %{(?<!')"} %{(?<!\\)(\\\\)*"} '' \
|
||||||
comment /\* \*/ '' \
|
comment /\* \*/ '' \
|
||||||
comment // $ '' \
|
comment // $ '' \
|
||||||
|
disabled ^\h*?#if\h+(0|FALSE)\b '#endif' '#if(def)?' \
|
||||||
macro ^\h*?\K# (?<!\\)\n ''
|
macro ^\h*?\K# (?<!\\)\n ''
|
||||||
|
|
||||||
addhl -group /cpp/string fill string
|
addhl -group /cpp/string fill string
|
||||||
addhl -group /cpp/comment fill comment
|
addhl -group /cpp/comment fill comment
|
||||||
|
addhl -group /cpp/disabled fill rgb:666666
|
||||||
addhl -group /cpp/macro fill meta
|
addhl -group /cpp/macro fill meta
|
||||||
|
|
||||||
addhl -group /cpp/code regex "\<(this|true|false|NULL|nullptr|)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" 0:value
|
addhl -group /cpp/code regex "\<(this|true|false|NULL|nullptr|)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" 0:value
|
||||||
|
Loading…
Reference in New Issue
Block a user