CppCXY
CppCXY
emmylua当前的语法分析不是手写的, 很难做到自定义语法规则, 如果你不需要调试功能, 你可以使用lua-language-server(sumneko-lua) 他的插件功能可以绕过这一点, 你试着写个插件, 如果你需要调试功能, 单独的lua-debug也是不错的选项, 他是目前vscode中实现得最完整得调试器.
publishing to LuaRocks is almost impossible, but publishing to Cargo is feasible. The Rust port of luals can be published to Rust's Cargo.
for document generate, I suggest you try https://crates.io/crates/emmylua_doc_cli
That's not the case. In fact, we are compatible with each other. Moreover, the current EmmyLua has been completely rewritten.
you can see https://github.com/LuaLS/lua-language-server/issues/3017
and you will see a doc gen example:https://github.com/LuaLS/lua-language-server/issues/3054
> intresting, do you plan to do a 1-1 port or just provide the same featureset? it is just a 1-1 port. I am not completely re-implementing luals in Rust....
The current Rust version can run correctly. Feel free to give it a try if you're interested.
If you are interested, you can use the [language server framework](https://github.com/CppCXY/LanguageServer.Framework) I wrote. It supports LSP 3.18 and AOT compilation.
You can refer to my project. https://github.com/CppCXY/EmmyLuaAnalyzer/blob/master/EmmyLua.LanguageServer/LanguageServer.cs