emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-delimiter-face - what for?


From: Randy Taylor
Subject: Re: font-lock-delimiter-face - what for?
Date: Tue, 27 Dec 2022 18:20:07 +0000

On Tuesday, December 27th, 2022 at 11:54, Dmitry Gutov <dgutov@yandex.ru> wrote:
> 
> On 27/12/2022 18:44, Randy Taylor wrote:
> 
> > It's primarily for punctuation-related ones (e.g., ‘;’, ‘:’, ‘,’), hence 
> > why it inherits from the punctuation face.
> > 
> > A more specific example (using c-ts-mode):
> > int quack = 0;
> > ^ font-lock-delimiter-face
> 
> 
> All right, thank you.
> 
> Perhaps we could add some examples to the docstrings.
> 
> That could also help clarify the difference between
> font-lock-punctuation-face and font-lock-misc-punctuation-face.

font-lock-punctuation-face covers all punctuation.

The rest (bracket, delimiter, misc-punctuation) are for the more specific 
kinds, with misc-punctuation being anything not a bracket or delimiter. For 
example, see bash-ts-mode which specifies $ as misc-punctuation.



reply via email to

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