KDevelop 中的 Lua 语法高亮显示
有谁知道如何修复 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对 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.