Is there a safe way to do semantic highlighting in the editor? In other words, if I have three types of identifiers that can appear in my language and I want to highlight each of the three types differently, but I only the "type" of an identifier in the semantic analysis phase, is there a safe way for me to change the highlight of the identifier without worrying about threading issues?
Another idea, is "OnSemanticParseDataChanged" executed in the context of the thread that changed the parse data, or on the UI thread? If it's on the UI thread, then if I used a fast data structure that was thread-protected from the parser thread, I could do the highlighting there, couldn't I?
I know there are a couple of threads on the forum about this, but I didn't have much luck finding specifics that would help me on those - sorry if I'm repeating the question...
Another idea, is "OnSemanticParseDataChanged" executed in the context of the thread that changed the parse data, or on the UI thread? If it's on the UI thread, then if I used a fast data structure that was thread-protected from the parser thread, I could do the highlighting there, couldn't I?
I know there are a couple of threads on the forum about this, but I didn't have much luck finding specifics that would help me on those - sorry if I'm repeating the question...
Kelly Leahy Software Architect Milliman, USA