Problem with Annotator
Hi all,
I'm using an annotator for my custom language plugin, and I'm seeing that it's not called for all elements - I end up with some dangling elements that are not correctly annotated. I've been printing out the contents of the PsiElement during the annotation process, and it's definitely missing some. Is there anything obvious that might cause this?
Cheers,
Colin
请先登录再写评论。
Hello Colin,
Does the file in which you see this problem have any syntax errors (PsiErrorElements)?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry,
Ah, that was it, thanks. I have a problem with my lexer which I haven't fixed yet, and I hadn't noticed that all the non-annotated elements were ancestors of one of the error nodes.
Thanks!
Colin