KDevelop 中的 Lua 语法高亮显示

发布于 2024-07-11 18:28:00 字数 113 浏览 5 评论 0原文

有谁知道如何修复 Kdevelop 中的 Lua 语法突出显示。 用于获取表长度的 # 符号会导致该行的其余部分显示为好像已被注释掉一样。

t[#t+1] = "foo"

Does anyone know how to fix the Lua syntax highlighting in Kdevelop. The # symbol used to get the length of a table causes the remainder of the line to appear as if it is commented out.

t[#t+1] = "foo"

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清醇 2024-07-18 18:28:00

我对 Lua 一无所知,所以我不能给你具体的代码,但要修复突出显示,你必须编辑 KatePart Lua 语法突出显示文件,位于 $KDEDIR/share/apps/katepart/syntax/lua .xml(在我的系统上 $KDEDIR 是 /usr/kde/3.5)。 您可以在 http://kate-editor.org/article/writing_a_kate_highlighting_xml_file< 中找到 XML 格式的说明< /a>...它们不是最清晰的方向,但我还没有找到其他等效的内容。 值得庆幸的是,KDE 中包含了大量示例。

I don't know anything about Lua so I can't give you specific code, but to fix the highlighting you'd have to edit the KatePart Lua syntax highlighting file, located at $KDEDIR/share/apps/katepart/syntax/lua.xml (on my system $KDEDIR is /usr/kde/3.5). You can find a description of the XML format at http://kate-editor.org/article/writing_a_kate_highlighting_xml_file... they're not the clearest directions but I haven't found anything else equivalent. Thankfully there are plenty of examples included with KDE.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文