mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-15 18:15:53 +03:00
Merge union handling fix in cpp.kak from davidaciko
This commit is contained in:
commit
c6eea12f76
@ -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 <a-h><a-k>^\h+\}$<ret>hms\`|.\'<ret>1<a-&> ]
|
||||
# add ; after } if class or struct definition
|
||||
try %[ exec -draft "hm<space><a-?>(class|struct)<ret><a-k>\`(class|struct)[^{}\n]+(\n)?\s*\{\'<ret><a-space>ma;<esc>" ]
|
||||
try %[ exec -draft "hm<space><a-?>(class|struct|union)<ret><a-k>\`(class|struct|union)[^{}\n]+(\n)?\s*\{\'<ret><a-space>ma;<esc>" ]
|
||||
]
|
||||
|
||||
addhl -group / regions -default code cpp \
|
||||
|
Loading…
Reference in New Issue
Block a user