c-family: auto close unions with a semicolon as well

This commit is contained in:
Maxime Coste 2017-09-18 09:41:26 +09:00
parent af61401e3a
commit 902724e558

View File

@ -71,7 +71,7 @@ def -hidden c-family-indent-on-closing-curly-brace %[
def -hidden c-family-insert-on-closing-curly-brace %[ def -hidden c-family-insert-on-closing-curly-brace %[
# add a semicolon after a closing brace if part of a class, union or struct definition # add a semicolon after a closing brace if part of a class, union or struct definition
try %[ exec -itersel -draft hm<a-x>B<a-x><a-k>\`\h*(class|struct|union)<ret> a\;<esc> ] try %[ exec -itersel -draft hm<a-x>B<a-x><a-k>\`\h*(class|struct|union|enum)<ret> a\;<esc> ]
] ]
def -hidden c-family-insert-on-newline %[ eval -draft %[ def -hidden c-family-insert-on-newline %[ eval -draft %[