-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block comments highlighting issue #3
Comments
thanks |
I've played with this a little. It looks like LexerEditorHighlighter doesn't expect lexers to recover and split incomplete input into more than two (three?) tokens, which ANTLR does when fed with |
wow! Thanks very much for the help! I to get back to the plug-in related stuff soon. |
@parrt How's the progress on this? |
Sorry. Pinging @bjansen to see if he has time to look. |
There's an interesting comment in the thread that @Kisioj opened on JetBrains' forums. From what I understand, because the lexer used by IntelliJ is incremental, there might be cases where the whole comment will not be re-lexed. For example, when a space is inserted in the closing Because IDEs will very likely have to parse incorrect or partial source files, the correct (and recommended) approach to this problem seems to make lexers recognize unclosed comments, strings etc. |
Well, not just block comments, but it's reproducible with antlr/jetbrains-plugin-sample: http://recordit.co/ODFaSxunOl
Same issue in my project using this adapter: http://recordit.co/dsL5dlHS9t
The text was updated successfully, but these errors were encountered: