diff --git a/rc/filetype/d.kak b/rc/filetype/d.kak index 66773a06..8bf40e26 100644 --- a/rc/filetype/d.kak +++ b/rc/filetype/d.kak @@ -122,7 +122,7 @@ define-command -hidden d-indent-on-new-line %~ # indent after if|else|while|for try %[ execute-keys -draft )MB \A(if|else|while|for)\h*\(.*\)\h*\n\h*\n?\z s \A|.\z 11 ] # deindent closing brace(s) when after cursor - try %[ execute-keys -draft ^\h*[})]+\h*$ hm 1 ] + try %[ execute-keys -draft ^\h*[})]+\h*\;?\h*(?://.*)?$ \; [})] m 1 ] = ~