GNU bug report logs - #23461
perl mode uses same color for comments and here documents

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 5 May 2016 21:05:02 UTC

Severity: wishlist

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: haj <at> posteo.de (Harald Jörg)
Cc: 23461 <at> debbugs.gnu.org
Subject: bug#23461: perl-mode: Displaying HERE-docs as strings instead of comments [PATCH]
Date: Tue, 22 Dec 2020 23:00:01 -0500
> Investigating how to fix this leads to the longer story.  There are two
> possible approaches:
>
>   1) use a string-style syntax (generic string) instead of c-style
>      comments to flag HERE-documents.  That way, font-lock picks up the
>      correct face automagically.
>
>   2) Keep HERE_docs as c-style comments, but change the face mapping by
>      injecting a function into font-lock-defaults which applies the
>      string face to c-style comments.

3) Use `font-lock-syntactic-face-function`?


        Stefan





This bug report was last modified 4 years and 197 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.