不能在自定义Intellij插件中删除不良字符
我正在为Intellij创建自定义语言插件。
我实现了语法突出显示,并且效果很好。
令牌树也正确地构建了,但是当我键入意外的令牌时,会发生一些奇怪的事情。
例如,backspace键不会删除字符。对我而言,更有趣的是,我可以使用Shift,Arrow和BackSpace擦除这个不正确的字符。
奇怪行为的第二个示例是代码编辑器崩溃。
有人有什么想法如何解决吗?
键入一些意外的内容
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.
Does anybody have any ideas how to fix it?
It is PSI viewer after typing some unexpected things
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论