1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-08 07:20:28 -08:00
emacs/test/lisp/progmodes/cperl-mode-resources
Harald Jörg 3c44d7a1b7 cperl-mode.el: Subroutine names are fontified correctly in all places
Subroutine names are fontified as subroutine names even if the name is also
the name of a builtin (fixing an ancient unreported bug).  Subroutine name
are just comments in comment and pod (fixing a bug introduced recently)

* lisp/progmodes/cperl-mode.el (cperl-init-faces): Move
fontification of sub declarations before that of builtins.  Don't
override existing faces when fontifying subroutine declarations.
Don't fontify method calls even if the sub names match those of
builtins.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-fontify-sub-names):
New tests with a subroutine name in several surroundings.

* test/lisp/progmodes/cperl-mode-resources/sub-names.pl: New resource
for the new test.
2023-08-02 23:59:42 +02:00
..
cperl-bug-11733.pl ; cperl-mode.el: Fix two indentation bugs (Bug#11733) 2023-07-02 00:37:10 +02:00
cperl-bug-11996.pl
cperl-bug-19709.pl
cperl-bug-22355.pl
cperl-bug-23992.pl
cperl-bug-25098.pl
cperl-bug-26850.pl
cperl-bug-30393.pl
cperl-bug-64190.pl cperl-mode.el: Support subroutine signatures 2023-06-30 23:41:06 +02:00
cperl-bug-64364.pl cperl-mode.el: Support Perl 5.38 syntax for subroutine signatures 2023-07-01 21:40:46 +02:00
cperl-indent-exp.pl
cperl-indent-styles.pl
cperl-indents.erts cperl-mode.el: Add support for new Perl syntax in Perl 5.36 and 5.38 2023-07-03 23:05:10 +02:00
fontify-punctuation-vars.pl ; Fix typos 2022-12-23 18:21:10 +01:00
grammar.pl cperl-mode.el: Add support for new Perl syntax in Perl 5.36 and 5.38 2023-07-03 23:05:10 +02:00
here-docs.pl Improve HERE document detection in perl-mode 2022-10-20 07:34:38 -03:00
perl-class.pl cperl-mode.el: Add support for new Perl syntax in Perl 5.36 and 5.38 2023-07-03 23:05:10 +02:00
proto-and-attrs.pl cperl-mode.el: Support Perl 5.38 syntax for subroutine signatures 2023-07-01 21:40:46 +02:00
sub-names.pl cperl-mode.el: Subroutine names are fontified correctly in all places 2023-08-02 23:59:42 +02:00