]> git.eshelyaron.com Git - emacs.git/commit
cperl-mode: Indentation of ')' follows customisation
authorHarald Jörg <haj@posteo.de>
Mon, 9 Nov 2020 14:25:47 +0000 (15:25 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 9 Nov 2020 14:25:47 +0000 (15:25 +0100)
commit8dc237270f88a6abce4df9a1235b38288792ab71
tree443b513cc749f5920b43939ce92122819043b931
parenta05810b2d5f1a87ad1b20c4e61adc464a31e315d
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.
lisp/progmodes/cperl-mode.el
test/lisp/progmodes/cperl-mode-resources/cperl-bug-19709.pl [new file with mode: 0644]
test/lisp/progmodes/cperl-mode-resources/cperl-indent-styles.pl
test/lisp/progmodes/cperl-mode-tests.el