]> git.eshelyaron.com Git - emacs.git/commit
Fix indentation in perl-mode (Bug#35925)
authorMauro Aranda <maurooaranda@gmail.com>
Sat, 16 Sep 2023 21:15:40 +0000 (18:15 -0300)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 1 Oct 2023 02:13:17 +0000 (04:13 +0200)
commit7caa3f5499b1ca4b6d66c1655a4e0d6903755679
treee4db7c5373051486181a9269eb88a8784b8b4f1d
parent6dd1565fcf2887d4758e8a779f0c9d6320e85385
Fix indentation in perl-mode (Bug#35925)

* lisp/progmodes/perl-mode.el (perl--format-regexp): New defconst.
(perl--end-of-format-p): New function.
(perl-continuation-line-p): Use it.
(perl-calculate-indent): Use it.  Make the lines of the formlist stay
at column 0.

* test/lisp/progmodes/cperl-mode-resources/cperl-bug-35925.pl: New
test file.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-35925): New
test.
lisp/progmodes/perl-mode.el
test/lisp/progmodes/cperl-mode-resources/cperl-bug-35925.pl [new file with mode: 0644]
test/lisp/progmodes/cperl-mode-tests.el