diff --git a/rc/filetype/perl.kak b/rc/filetype/perl.kak index e2150a1b..aacab43f 100644 --- a/rc/filetype/perl.kak +++ b/rc/filetype/perl.kak @@ -118,7 +118,7 @@ define-command -hidden perl-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*(?://.*)?$ [})] m 1 ] = ~