lua-language-server
lua-language-server copied to clipboard
Expose the Lexer/Parser to plugins
Hello, I am trying to implement teal support for the language server using the plugin feature, but this is extremely difficult mainly due to the primitiveness of lua's pattern matching compared to a full lexer. I could manually lex the file, but that would be much slower.
You can require 'lpeglabel' in plugin.
LuaParser cannot handle the syntax of Teal.
What the plugin need to do is pre-converting Teal into a legal Lua syntax before loading by LuaParser.
Hello @Frityet, has your question been answered?
Aye, will close