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
Describe the bug continue is treated as a keyword even when it's disabled on LuaSyntaxOptions
continue
To Reproduce
using Loretta.CodeAnalysis.Lua; using Loretta.CodeAnalysis; var parseOptions = new LuaParseOptions(LuaSyntaxOptions.Lua51).WithDocumentationMode(DocumentationMode.Parse); // parse var lorettaAst = LuaSyntaxTree.ParseText(@" local continue = true if continue then continue = false end ", parseOptions, "test.lua"); foreach (var exc in lorettaAst.GetDiagnostics()) { Console.WriteLine(exc.ToString()); }
this code generates the following diagnostics:
test.lua(2,7): error LUA1000: Identifier expected; 'continue' is a keyword test.lua(2,16): error LUA1012: Invalid statement test.lua(2,16): error LUA1012: Invalid statement test.lua(4,4): error LUA1011: Invalid expression part 'continue' test.lua(4,4): error LUA1006: Syntax error, 'then' expected test.lua(4,11): error LUA1012: Invalid statement test.lua(5,14): error LUA1012: Invalid statement test.lua(5,14): error LUA1012: Invalid statement
Expected behavior Since Lua 5.1 is defined, no error is expected
Additional context Loretta Version: Happens both on 0.2.13-nightly1 and 0.2.12
The text was updated successfully, but these errors were encountered:
GGG-KILLER
No branches or pull requests
Describe the bug
continue
is treated as a keyword even when it's disabled on LuaSyntaxOptionsTo Reproduce
this code generates the following diagnostics:
Expected behavior
Since Lua 5.1 is defined, no error is expected
Additional context
Loretta Version: Happens both on 0.2.13-nightly1 and 0.2.12
The text was updated successfully, but these errors were encountered: