emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: C++-mode: Syntax highlighting: wrong color for funct


From: Alan Mackenzie
Subject: Re: address@hidden: C++-mode: Syntax highlighting: wrong color for function identifier depending on the kind of whitespace that follows]
Date: Wed, 15 Feb 2006 21:59:54 +0000 (GMT)


On Wed, 15 Feb 2006, Stefan Monnier wrote:

>>> I.e. equivalent to "<<\\(.\\|\n\\)*?\\(>>\\)?".

>> Small point:  It might be a good idea here to write [\n\r] rather than
>> just \n, in case something has changed \n's to \r's for selective
>> display (Node of that name in the Elisp manual).

>Last time I checked a "." in a regexp does match \r even if
>selective-display is activated, so always \\(.\\|\n\\) matches *any* char.

Ah!  OK, thanks!

>        Stefan

>PS: Furthermore, selective-display is on its way out.  The only code
>left that uses it (in Emacs-CVS) is in dired-aux.el, gnus-sum.el, and
>locate.el, none of which interact with other major modes.

But for people writing modes which have to work with older (X)Emacsen,
it's worth bearing in mind.

-- 
Alan.






reply via email to

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