diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-08-07 00:28:55 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-08-07 00:28:55 +0200 |
| commit | c166bc92e365c3a4b3a97462109bff679f87b671 (patch) | |
| tree | c114ab29c7a713775553dafa61d6eba0e2ebb888 /src/rc/cpp.kak | |
| parent | 02b7786bcd175637848d02f5ff800247e0403760 (diff) | |
use new regex highlighter features in rc files
Diffstat (limited to 'src/rc/cpp.kak')
| -rw-r--r-- | src/rc/cpp.kak | 14 |
1 files changed, 7 insertions, 7 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 "(?<!')\"(\\\"|[^\"])*\"" 0:magenta,default; - addhl -group cpp-highlight regex "(\`|(?<=\n))\h*#\h*[^\n]*" 0:magenta,default; - addhl -group cpp-highlight regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" 0:cyan,default; + addhl -group cpp-highlight regex "\<(this|true|false|NULL|nullptr|)\>|\<-?\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:magenta + addhl -group cpp-highlight regex "(\`|(?<=\n))\h*#\h*[^\n]*" 0:magenta + addhl -group cpp-highlight regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" 0:cyan addfilter group cpp-filters; addfilter -group cpp-filters preserve_indent; addfilter -group cpp-filters cleanup_whitespaces; |
