emacs/test/lisp/progmodes/cperl-mode-resources/cperl-bug-23992.pl
Harald Jörg 90f54aad5e ; perl-mode.el: Detect regexes immediately after "|&"
* 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.
2021-06-08 23:23:25 +02:00

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;