emacs/test/lisp/progmodes/cperl-mode-resources/cperl-bug-19709.pl
Harald Jörg 8dc237270f cperl-mode: Indentation of ')' follows customisation
* lisp/progmodes/cperl-mode.el (cperl-style-alist): Add
cperl-close-paren-offset to the settings for PBP style.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug19709):
New test to verify correct indentation of closing parentheses (Bug#19709).

* test/lisp/progmodes/cperl-mode-resources/cperl-bug-19709.pl:
New test case with code from the bug report.

* test/lisp/progmodes/cperl-mode-resources/cperl-indent-styles.pl:
Add a new test clause for cperl-close-paren-offset.
2020-11-09 15:25:47 +01:00

25 lines
333 B
Raku

# -------- bug#19709: input --------
my $a = func1(
Module::test()
);
my $b = func2(
test()
);
my $c = func3(
Module::test(),
);
# -------- bug#19709: expected output --------
my $a = func1(
Module::test()
);
my $b = func2(
test()
);
my $c = func3(
Module::test(),
);
# -------- bug#19709: end --------