]> git.eshelyaron.com Git - emacs.git/commit
;cperl-mode.el: Avoid false positives when parsing new Perl syntax
authorHarald Jörg <haj@posteo.de>
Thu, 13 Jun 2024 12:34:16 +0000 (14:34 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:21:11 +0000 (19:21 +0200)
commitd7fc6b69ddfe58838bc2ed95d9ccccb08d717d12
treedd32fc3ba73e21ff27e70a8cae94abd3b8532d6b
parent871d5c23a98e3f0443d80dc6e3e28b9afc22bb95
;cperl-mode.el: Avoid false positives when parsing new Perl syntax

* lisp/progmodes/cperl-mode.el (cperl--package-for-imenu-rx)
(cperl--class-for-imenu-rx): avoid false positives when collecting
imenu entries
* lisp/progmodes/cperl-mode.el (cperl-init-faces): avoid false
positives when detecting package names

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-imenu-index): Add test verifying that $class_false is
not shown as a class _false

* test/lisp/progmodes/cperl-mode-resources/grammar.pl: Add a line
containing a false positive "$class_false"

(cherry picked from commit 39e3c30b514c21854f7fcc87c3a461bd9e81cbdb)
lisp/progmodes/cperl-mode.el
test/lisp/progmodes/cperl-mode-resources/grammar.pl
test/lisp/progmodes/cperl-mode-tests.el