mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-10 14:10:51 +00:00

* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "|&" to the list of characters after which a slash starts a regular expression (Bug#23992). * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-ppss): Correct the docstring. (cperl-test-bug-23992): New test for Bug#23992. (cperl-test-bug-42168): Adapt inline comments to the current code. * test/lisp/progmodes/cperl-mode-resources/cperl-bug-23992.pl: Resource file with example code from the bug report.
10 lines
292 B
Perl
10 lines
292 B
Perl
# Test file for Bug#23992
|
|
#
|
|
# The "||" case is directly from the report,
|
|
# the "&&" case has been added for symmetry.
|
|
|
|
s/LEFT/L/g || s/RIGHT/R/g || s/aVALUE\D+//g;
|
|
s/LEFT/L/g||s/RIGHT/R/g||s/aVALUE\D+//g;
|
|
|
|
s/LEFT/L/g && s/RIGHT/R/g && s/aVALUE\D+//g;
|
|
s/LEFT/L/g&&s/RIGHT/R/g&&s/aVALUE\D+//g;
|