From e788417e3b7a58e5ec1b99657d65c223038da66d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 13 Jul 2014 16:55:34 +0100 Subject: [PATCH] Use a region for c++ macro highlighting --- rc/cpp.kak | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rc/cpp.kak b/rc/cpp.kak index cf4dbd10..83732ec4 100644 --- a/rc/cpp.kak +++ b/rc/cpp.kak @@ -42,16 +42,17 @@ def -hidden _cpp_indent_on_closing_curly_brace %[ addhl -group / multi_region -default code cpp \ string %{(?|\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'" 0:value addhl -group /cpp/code regex "\<(void|int|char|unsigned|float|bool|size_t)\>" 0:type addhl -group /cpp/code regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return|using|try|catch|throw|new|delete|and|or|not|operator|explicit)\>" 0:keyword addhl -group /cpp/code regex "\<(const|mutable|auto|namespace|inline|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual|friend|extern|typename|override|final)\>" 0:attribute -addhl -group /cpp/code regex "^\h*?#.*?(?