From 9b0b20f2d44f252b68dceb6c7896d6b62f51f887 Mon Sep 17 00:00:00 2001 From: davidaciko Date: Tue, 29 Jul 2014 10:18:57 +0000 Subject: [PATCH 2/2] cpp.kak: Added union support to automatic semicolon after block --- rc/cpp.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/cpp.kak b/rc/cpp.kak index 3edbd535..0208a08d 100644 --- a/rc/cpp.kak +++ b/rc/cpp.kak @@ -36,7 +36,7 @@ def -hidden _cpp_indent_on_closing_curly_brace %[ # align to opening curly brace when alone on a line try %[ exec -itersel -draft ^\h+\}$hms\`|.\'1 ] # add ; after } if class or struct definition - try %[ exec -draft "hm(class|struct)\`(class|struct)[^{}\n]+(\n)?\s*\{\'ma;" ] + try %[ exec -draft "hm(class|struct|union)\`(class|struct|union)[^{}\n]+(\n)?\s*\{\'ma;" ] ] addhl -group / regions -default code cpp \