]> git.eshelyaron.com Git - emacs.git/commit
perl-mode and cperl-mode: Recognize regex after "return"
authorHarald Jörg <haj@posteo.de>
Mon, 16 Nov 2020 23:20:26 +0000 (00:20 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 16 Nov 2020 23:20:26 +0000 (00:20 +0100)
commitf5f9e100972598b1bb9cea4c0445777db2e1131e
tree5b92eccb43a1b15dc5d9741d41f5547859f2b8d3
parentb613f25f97abf756101eaa2af90689a19c0b3350
perl-mode and cperl-mode: Recognize regex after "return"

* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Add
"return" to the keywords which start a regex.

* lisp/progmodes/perl-mode.el (defconst): Add "return" to
'perl--syntax-exp-intro-keywords' (Bug#26850).

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