]> git.eshelyaron.com Git - emacs.git/commit
; perl-mode, cperl-mode: Fix $\" in strings (Bug#69604)
authorHarald Jörg <haj@posteo.de>
Thu, 7 Mar 2024 23:37:36 +0000 (00:37 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:15:33 +0000 (10:15 +0100)
commit54cfc13e291658e51071e5f12535e22412cd04c0
tree0870a9aeeb29fcd4995d858b6e66c36cf612b23b
parent3e894593487892e72f419a6c78235e007c933dc4
; perl-mode, cperl-mode: Fix $\" in strings (Bug#69604)

* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Add to syntax-propertize-rules that $ is punctuation in strings.

* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): capture $\
to catch the edge case of "$\"".  Make $ a punctuation char in
strings and comments.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-69604):
New testcases with various combinations of $ " \

(cherry picked from commit 00f86833ac5423d57825213ef8b611978be0a3eb)
lisp/progmodes/cperl-mode.el
lisp/progmodes/perl-mode.el
test/lisp/progmodes/cperl-mode-tests.el