不能在自定义Intellij插件中删除不良字符

发布于 2025-01-30 18:55:50 字数 588 浏览 2 评论 0原文

我正在为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

PSI viewer

Here I can't erase character at all
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文