LuaParser icon indicating copy to clipboard operation
LuaParser copied to clipboard

Customized Lua parser for [lua-language-server](https://github.com/sumneko/lua-language-server).

Results 1 LuaParser issues
Sort by recently updated
recently updated
newest added

这是非常罕见的场景, 并且建议避免编写这种代码. ```lua local env = _ENV _ENV, a = {}, 1 env.print(env.a, a) -- 1 nil ``` 使用`parser.compile`函数解析得到的`state.ast.locals`会多出错误的局部变量`_ENV`和`a`. 整个多重赋值语句都会识别成`local`变量定义, 不管是`a, a.x, a[1]`形式, 生成的`ast.type`字段都会被错误的标识成`'local'`. 同时也会导致[vscode插件](https://github.com/LuaLS/lua-language-server)错误提示. ![image](https://github.com/LuaLS/LuaParser/assets/73267079/19d1acbc-a837-408f-bc68-96b1109f6f63)