]> git.eshelyaron.com Git - emacs.git/commit
perl-mode: Display here-docs as strings instead of comments
authorHarald Jörg <haj@posteo.de>
Tue, 5 Jan 2021 09:15:04 +0000 (10:15 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 5 Jan 2021 09:15:04 +0000 (10:15 +0100)
commit06810abc591fb40450bcf448d584316d26e8e98b
tree39e84f75380143ed023c43339eba017dce90b445
parent8ef4314c44a046e92bcd7dddde26203a9d641f09
perl-mode: Display here-docs as strings instead of comments

* lisp/progmodes/perl-mode.el
(perl-syntax-propertize-function): Handle HERE doc starter
lines ending in a comment.
(perl-heredoc): New face for HERE docs, inheriting from
font-lock-string-face.
(perl-font-lock-syntactic-face-function): Apply the new face
to HERE docs (Bug#23461).

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test--run-bug-10483): Skip for Perl mode.  The test
explicitly calls a function of CPerl mode.
etc/NEWS
lisp/progmodes/perl-mode.el
test/lisp/progmodes/cperl-mode-resources/here-docs.pl [new file with mode: 0644]
test/lisp/progmodes/cperl-mode-tests.el