We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这是非常罕见的场景, 并且建议避免编写这种代码.
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'.
parser.compile
state.ast.locals
_ENV
a
local
a, a.x, a[1]
ast.type
'local'
同时也会导致vscode插件错误提示.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这是非常罕见的场景, 并且建议避免编写这种代码.
使用
parser.compile
函数解析得到的state.ast.locals
会多出错误的局部变量_ENV
和a
.整个多重赋值语句都会识别成
local
变量定义, 不管是a, a.x, a[1]
形式, 生成的ast.type
字段都会被错误的标识成'local'
.同时也会导致vscode插件错误提示.
The text was updated successfully, but these errors were encountered: