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 20:33:43 +0000 (GMT)


On Mon, 13 Feb 2006, Stefan Monnier wrote:

>> Currently a function is used as matcher in `font-lock-keywords' for
>> this functionality.  It basically operates like this:

>>   (catch 'match
>>     (while (re-search-forward "<<" limit t)
>>       (let ((beg (match-beginning 0)))
>>       (search-forward ">>" limit 'move)
>>       (store-match-data (list beg (point)))
>>       (throw 'match t))))

>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).

-- 
Alan.






reply via email to

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