From cd53d313848d5ded4bf33bf480f11b676f381e22 Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 13:50:51 -0600 Subject: [PATCH] Fix indentation rule for java.kak --- rc/filetype/java.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/java.kak b/rc/filetype/java.kak index f6a77f82..a2b18fd1 100644 --- a/rc/filetype/java.kak +++ b/rc/filetype/java.kak @@ -56,6 +56,8 @@ define-command -hidden java-indent-on-new-line %~ try %[ execute-keys -draft k ^\h*(case|default).*:$ j ] # indent after keywords try %[ execute-keys -draft )MB \A(if|else|while|for|try|catch)\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 ] = ~