bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23461: perl-mode: Displaying HERE-docs as strings instead of comment


From: Stefan Monnier
Subject: bug#23461: perl-mode: Displaying HERE-docs as strings instead of comments [PATCH]
Date: Tue, 22 Dec 2020 23:00:01 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]