I'm trying to develop a custom language plugin as inspired by the recent blog describing how.
I have a subset of my antlr grammar implemented in Grammar-Kit and JFlex, and and have basically gotten
through the syntax highlighting step.
The problem I'm experiencing is that unless certain token gets entered into the editor atomically
via copy&paste, that they show up with BAD_CHARACTER highlighting.
Even if I correct the syntax of the text in the editor, and the PsiViewer shows the proper tokens
in the tree, the text has been poisoned by being temporarily invalid.
Is there something I need to do do force the refresh of the syntax highlighting?