![Avatar](https://secure.gravatar.com/avatar/3b58bffd8833fb0a26e8ec99697c3772.jpg?s=64&d=identicon&r=g)
I'd like to know when the user is typing a comment so I don't show the Intelliprompt popup. In the DocumentTextChanged handler, it looks like I can use _Editor.ActiveView.GetReader().ReadTokenReverse() to grab the current token. If it's currently inside a comment, the token Key will be "SingleLineCommentText" or "MultiLineCommentText" ( this is for a lua editor ). The .langdef file also defines a DefaultClassificationTypeKey for both types of comments as "Comment". Is there a way to get this value from the current reader? If I added an Id to the .langdef comment definition would that then be available here?
EDIT : Poking through the documentation, it looks like it might be better if I get the current LexicalState - if I'm in SingleQuoteString, DoubleQuoteString, LongBracketString, MultiLineComment or SingleLineComment I don't want to show the popup. How would I go about getting the current ILexicalState inside the DocumentTextChanged handler?
[Modified at 02/05/2010 04:34 PM]
EDIT : Poking through the documentation, it looks like it might be better if I get the current LexicalState - if I'm in SingleQuoteString, DoubleQuoteString, LongBracketString, MultiLineComment or SingleLineComment I don't want to show the popup. How would I go about getting the current ILexicalState inside the DocumentTextChanged handler?
[Modified at 02/05/2010 04:34 PM]