semantic highlighting stopped working for comments ? [message #897662] |
Tue, 24 July 2012 21:23  |
Eclipse User |
|
|
|
Hi,
Since some version back (2.2.1) I have an issue with semantic
highlighting. There seems to be some sort of optimization because I no
longer see semantic highlighting being applied to comments.
I have the same problem in 2.3.0 (Juno release).
It seems like all my other semantic highlighting kicks in, but for
comments it seems like only the default token based highlighting is
applied. (When I change the style under preferences it *is* applied in
all open editors.
Need some hints regarding debugging/ fixing of this, and if something
has changed that I need to be aware of.
Regards
- henrik
|
|
|
|
|
|
Re: semantic highlighting stopped working for comments ? [message #897935 is a reply to message #897919] |
Wed, 25 July 2012 09:14  |
Eclipse User |
|
|
|
On 2012-25-07 14:39, Henrik Lindberg wrote:
> On 2012-25-07 9:03, Sebastian Zarnekow wrote:
>> Henrik,
>>
>> did you try to invoke #resolveLazyCrossReferences as the first thing in
>> your highlighting computer?
>>
> A bit tricky, since linking potentially can take a long time, and a
> CancelIndicator should be passed - don't know how to obtain one in the
> highlighting computer.
>
> Think I will just break out the part of the logic that is required for
> highlighting, and then do the second step during validation/linking.
> Also think this may improve on performance/feedback while editing.
>
> ...let's see what happens...
>
Worked like a charm. Doing the first part in resource
updateInternalState, and then validation of that during
validation/linking. (Nevermind coloring things based on linkage result -
will just use error/warning markers instead.
Regards
- henrik
|
|
|
Powered by
FUDForum. Page generated in 0.26386 seconds