I am creating custom language plugin for IntelliJ.
I implemented syntax highlighting and it works fine.
Tokens tree is built correctly too but when I type unexpected token something strange happens.
For example backspace key doesn't erase character. What is more interesting for me is that I can erase this incorrect character using shift, arrow and backspace.
Second example of strange behaving is total code editor crashing.
Any ideas what I do wrong? How to process invalid tokens?
My repository: here