diff --git a/rc/filetype/perl.kak b/rc/filetype/perl.kak index d3f03ed2..d94f27d4 100644 --- a/rc/filetype/perl.kak +++ b/rc/filetype/perl.kak @@ -111,8 +111,8 @@ define-command -hidden perl-indent-on-new-line %~ try %{ execute-keys -draft k s \h+$ d } # align to opening paren of previous line try %{ execute-keys -draft [( \A\([^\n]+\n[^\n]*\n?\z s \A\(\h*.|.\z '' & } - # copy // comments prefix - try %{ execute-keys -draft k s ^\h*\K/{2,} yP } + # copy # comments prefix + try %{ execute-keys -draft k s ^\h*\K# yP } # indent after a switch's case/default statements try %[ execute-keys -draft k ^\h*(case|default).*:$ j ] # indent after if|else|while|for