diff --git a/rc/filetype/perl.kak b/rc/filetype/perl.kak index a2da7cf9..e2150a1b 100644 --- a/rc/filetype/perl.kak +++ b/rc/filetype/perl.kak @@ -117,6 +117,8 @@ define-command -hidden perl-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 ] = ~