From 8a079dd82fcac2a824471286e1e947f9b1d796fa Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 13:15:05 -0600 Subject: [PATCH] Fix indentation rule for d.kak --- rc/filetype/d.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/d.kak b/rc/filetype/d.kak index 18e547d5..66773a06 100644 --- a/rc/filetype/d.kak +++ b/rc/filetype/d.kak @@ -121,6 +121,8 @@ define-command -hidden d-indent-on-new-line %~ try %[ execute-keys -draft k ^\h*(case|default).*:$ j ] # 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 ] = ~