emacs-devel
[Top][All Lists]
Advanced

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

Re: Which face to use for highlighting interpolation delimiters?


From: Dmitry Gutov
Subject: Re: Which face to use for highlighting interpolation delimiters?
Date: Fri, 6 Jan 2023 15:50:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 06/01/2023 04:56, Randy Taylor wrote:
On Thursday, January 5th, 2023 at 20:53, Dmitry Gutov <dgutov@yandex.ru> wrote:

E.g. ${ and } in "String literal with #{var} in the middle".

So far it seems that the ts modes haven't managed to agree on one yet.

js-ts-mode uses font-lock-delimiter-face, and
typescript-ts-mode uses font-lock-builtin-face (for template_substitution).

Maybe we need a new one.

I think font-lock-misc-punctuation-face should be used for those.

Okay.

While we're at it, maybe a face for regexp literals as well?

Sure.

Eli, could we still add that in emacs-29? We'll make it simply inherit from string and use in a 2-3 ts modes for languages with regexp literals. It's a pretty trivial change.

If we defer it until Emacs 30, it will be kinda painful to use in ELPA-distributed packages (e.g. python and hopefully ruby as well).



reply via email to

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