codemirror 6中的自动完成的变量名称

发布于 2025-01-31 02:33:54 字数 196 浏览 3 评论 0原文

我已经为CodeMirror 6(Backus-Naur表单)建立了语言支持扩展。它可以很好地用于语法突出显示。

但是,我希望CodeMirror自动完成用户已经定义的规则的名称。

我阅读了文档,但他们似乎只解释了如何自动完成一组固定建议。

API参考在其自动完成相关类/方法的文档方面也缺乏一些。

有人知道如何实施吗?

I've built a language support extension for CodeMirror 6 (Backus-Naur Form). It works just fine for syntax highlighting.

However, I'd like for CodeMirror to auto-complete the names of the rules the user has already defined.

I read the docs, but they only seem to explain how to autocomplete a fixed set of suggestions.

The API reference is also somewhat lacking in terms of its documentation on autocomplete-related classes/methods.

Does anyone know how to implement this?

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

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

发布评论

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