diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index 5e1c006f..81bfac3f 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -47,7 +47,10 @@ def -hidden c-family-indent-on-newline %< eval -draft -itersel %< try %< exec -draft k \b(if|else|for|while)\h*\(.+?\)\h*$ j > # align to the opening parenthesis or opening bracket (whichever is first) # on a previous line if its followed by text on the same line - try %< exec -draft [b Z[B \`[{(][^\n]+\n[^\n]*\n?\' L s\`|.\' & > + try %< eval -draft %< + try %< exec [bZ[B > catch %< exec [B > + exec \`[{(][^\n]+\n[^\n]*\n?\' L s\`|.\' & + > > > > def -hidden c-family-indent-on-opening-curly-brace %[