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: martin rudalics
Subject: Re: address@hidden: C++-mode: Syntax highlighting: wrong color for function identifier depending on the kind of whitespace that follows]
Date: Tue, 14 Feb 2006 08:53:52 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>>With the matcher function above text in quotation marks won't be
>>fontified when I start typing stuff like "<<foo" as long as there is
>>no closing quotation mark.  Now if the closing quotation mark is
>>entered a few lines below the line containing the opening quotation
>>mark, font locking won't see the opening quotation mark and the
>>multiline quotation won't be fontified.
>
>
> Indeed.  You can use contextual refontification, tho:
>
>    (if jit-lock-context-unfontify-pos
>        (setq jit-lock-context-unfontify-pos
>              (min jit-lock-context-unfontify-pos
>                   (re-search-backward "<<" limit t))))
>
> it's specific to jit-lock, tho.

Provided the "<<" is still after window-start, though.

In any case, it's completely inappropriate to search tags in the hook.
The hook should trigger an idle timed function that would do the search.
And you could calmly replace the 1000 characters limit by something more
useful.






reply via email to

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