是否有任何适用于 Mac 的文本编辑器可以配置为具有或已经具有 Lua 自动完成功能?
我知道 TextWrangler 显示了该选项,但它实际上没有执行任何操作。所以我想要的是自动完成,无论是使用组合键,还是在我打字时。
语法着色/突出显示也是一个要求,尽管我知道 Xcode 和 TextWrangler 有这个功能。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
为此,您可能需要使用 Lua 开发工具。它具有语法着色功能,而且它还可以进行智能自动完成,具体取决于您的实际上下文(所需的模块,...)。
它是一个 Eclipse 技术项目,而且是开源的! (EPL 许可证)。
You might want to use Lua Development Tools for this purpose. It has syntax coloring, plus it is doing smart autocomplete, depending on what your actual context is (required modules, ...)
It is an Eclipse Technology project, and it is Open Source! (EPL license).
我不知道您是否看过此页面,但这似乎是一个不错的起点:
http:// lua-users.org/wiki/LuaEditorSupport
如果我搜索“completion”,我会得到:
我个人使用 Vim + SuperTab (它只会自动填充您之前编写的内容)。
I don't know if you have seen this page, but it seems a good place to start:
http://lua-users.org/wiki/LuaEditorSupport
If I search for "completion" I get:
I personally use Vim + SuperTab (which only auto-fills with things that you have previously written).
有一个很好的 IntelliJ IDEA 插件 for Lua。 IntelliJ IDEA 非常好,虽然有点大。
除此之外,还有 TextAdept,它要小得多,并且在 Lua 中 100% 可配置。
可能还有其他一些人。
There's a nice plugin for IntelliJ IDEA for Lua. IntelliJ IDEA is really nice, though kind of biggish.
Aside of that there is also TextAdept which is a lot smaller, and 100% configurable in Lua.
And probably a bunch of others.
如果你想要完整(语义)自动完成,你应该尝试 lua-inspect (源代码),可以安装在SciTE 编辑器,也可以使用 vim-lua-inspect 进入 ViM 。
它使用 Metalua 将源代码完全解析为 AST,然后进行代码分析。除了简单的基于关键字的语法荧光笔之外,它还可以:
)它还不稳定,并且往往会挂在大型脚本上,它对于标准 Lua 程序非常有用,主要是因为它的智能自动完成和重命名。
If you want full (semantic) autocompletion, you should try lua-inspect (source code), which can be installed in the SciTE editor, and also into ViM using vim-lua-inspect.
It uses Metalua to fully parse the source code into AST and then performs code analysis. Apart from simple keyword-based syntax highlighters, it can:
Even though it is not yet stable, and tends to hang on large scripts, it is very usable for standard Lua programs, mainly for it's intelligent autocompletion and renaming.