From c166bc92e365c3a4b3a97462109bff679f87b671 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 7 Aug 2012 00:28:55 +0200 Subject: [PATCH] use new regex highlighter features in rc files --- src/rc/cpp.kak | 14 +++++++------- src/rc/kakrc.kak | 8 ++------ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/rc/cpp.kak b/src/rc/cpp.kak index 0e7a5bf5..15992ce5 100644 --- a/src/rc/cpp.kak +++ b/src/rc/cpp.kak @@ -4,13 +4,13 @@ hook global BufCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) %{ hook global WinSetOption filetype=cpp %{ addhl group cpp-highlight; - addhl -group cpp-highlight regex "\<(this|true|false|NULL|nullptr|)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" 0:red,default; - addhl -group cpp-highlight regex "\<(void|int|char|unsigned|float|bool|size_t)\>" 0:yellow,default; - addhl -group cpp-highlight regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete|and|or|not)\>" 0:blue,default; - addhl -group cpp-highlight regex "\<(const|auto|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern|typename)\>" 0:green,default; - addhl -group cpp-highlight regex "(?|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" 0:red + addhl -group cpp-highlight regex "\<(void|int|char|unsigned|float|bool|size_t)\>" 0:yellow + addhl -group cpp-highlight regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete|and|or|not)\>" 0:blue + addhl -group cpp-highlight regex "\<(const|auto|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern|typename)\>" 0:green + addhl -group cpp-highlight regex "(? 0:green,default addhl -group kak-highlight regex \<(default|black|red|green|yellow|blue|magenta|cyan|white)\> 0:yellow,default - addhl -group kak-highlight regex (?<=\