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 \