diff options
author | Harald Jörg <haj@posteo.de> | 2021-01-05 10:15:04 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-01-05 10:15:04 +0100 |
commit | 06810abc591fb40450bcf448d584316d26e8e98b (patch) | |
tree | 39e84f75380143ed023c43339eba017dce90b445 /etc | |
parent | 8ef4314c44a046e92bcd7dddde26203a9d641f09 (diff) | |
download | emacs-06810abc591fb40450bcf448d584316d26e8e98b.tar.gz |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1834,6 +1834,9 @@ also keep the type information of their arguments. Use the ** CPerl Mode --- +*** New face 'perl-heredoc', used for heredoc elements. + +--- *** The command 'cperl-set-style' offers the new value "PBP". This value customizes Emacs to use the style recommended in Damian Conway's book "Perl Best Practices" for indentation and formatting |