From 56837aed57293ace48893a8782e11d10c56a3007 Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 13:11:32 -0600 Subject: [PATCH] Fix indentation rule for dart.kak --- rc/filetype/dart.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/dart.kak b/rc/filetype/dart.kak index 541c1e58..21db0b1e 100644 --- a/rc/filetype/dart.kak +++ b/rc/filetype/dart.kak @@ -97,6 +97,8 @@ define-command -hidden dart-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 when after cursor + try %[ execute-keys -draft ^\h*\}\h*$ hm 1 ] = ~