From 310bc42d54b4da30b00aeefc5ddcb0f488d39683 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Jun 2012 14:14:01 +0000 Subject: [PATCH] tweak cpp highlighting --- src/rc/cpp.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/cpp.kak b/src/rc/cpp.kak index b0c41c9d..28db130e 100644 --- a/src/rc/cpp.kak +++ b/src/rc/cpp.kak @@ -1,8 +1,8 @@ hook global WinCreate .*\.(c|cc|cpp|cxx|C|h|hh|hpp|hxx|H) \ addhl group hlcpp; \ - addhl -group hlcpp regex "\<(this|true|false|NULL|nullptr)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" red default; \ + addhl -group hlcpp regex "\<(this|true|false|NULL|nullptr|)\>|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" red default; \ addhl -group hlcpp regex "\<(void|int|char|unsigned|float|bool|size_t)\>" yellow default; \ - addhl -group hlcpp regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete)\>" blue default; \ + addhl -group hlcpp regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete|and|or|not)\>" blue default; \ addhl -group hlcpp regex "\<(const|auto|namespace|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern)\>" green default; \ addhl -group hlcpp regex "(?