I have problems with correct alignment of the closing parenthesis in cperl-mode
. For example consider the following Perl code:
my $a = func1(
Module::test()
);
my $b = func2(
test()
);
my $c = func3(
Module::test(),
);
We see that the closing parenthesis is not correctly indented for func1
, but for func2
and func3
it is correct.
In cperl-mode-hook
I have
(setq cperl-indent-level 4)
(setq cperl-indent-parens-as-block t)
(setq cperl-close-paren-offset -4)
What is the reason for this behavior, and how can I get correct indentation for the closing parenthesis also for func1
?
perltidy
.