perl-mode: Fix regexps for fontification
commit1ac8cd3ef673054720d88dbc5019677d70d3c26c
authorHarald Jörg <haj@posteo.de>
Wed, 24 Mar 2021 16:06:21 +0000 (24 17:06 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 24 Mar 2021 16:06:21 +0000 (24 17:06 +0100)
tree2be848e7e59190aed81ef203f2e243c4908d304f
parent39f16a7d396a9e8299b0447cdf87a07a4fbf4d53
perl-mode: Fix regexps for fontification

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-fontify-declarations): New test to ensure consistency
between perl-mode.el and cperl-mode.el (bug#47345).
* lisp/progmodes/perl-mode.el (perl-font-lock-keywords-1): pick
correct capture groups for "use Pack::Age;"
Fontify all components of "Pack::Age", not just "Pack"
(perl-font-lock-keywords-2): Use keyword-face for declarators
lisp/progmodes/perl-mode.el
test/lisp/progmodes/cperl-mode-tests.el