[Top][All Lists]

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

Re: font-lock-syntactic-keywords obsolet?

From: Alan Mackenzie
Subject: Re: font-lock-syntactic-keywords obsolet?
Date: Tue, 21 Jun 2016 14:40:47 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

Hello, Dmitry.

On Mon, Jun 20, 2016 at 11:32:05PM +0300, Dmitry Gutov wrote:
> On 06/20/2016 11:08 PM, Alan Mackenzie wrote:

[ .... ]

> Does C++ mode in master support raw strings already? Is there a limit on 
> how far you look for the end of the raw string, and if yes, how much is it?

Yes, no, and N/A, respectively.  Try out this raw string support,

> >> Stefan already addressed that:
> >> http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00421.html

> > He sort of addressed it.  The code which implements
> > syntax-propertize-extend-region-functions is not fully general.  For the
> > general case, you'd need to supplement such a function with a mode
> > specific before-change function.

> This is unsubstantiated.

At the risk of reigniting arguments, the current mechanism pays no
attention to the buffer text before a change.  So, if this is relevant
to the bounds of the region wanting syntax-table props applied/deleted,
the s-p-extend-r-f mechanism will need to be supplemented by a
before-change function.  The sort of situation you'd need it is where a
buffer change consists of deleting an escaped EOL.  If you only look at
the buffer in a-c, you'll have no idea how far back the original C Macro
extended, for example.

[ .... ]

Alan Mackenzie (Nuremberg, Germany).

reply via email to

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