You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax squiggles, notifying invalid Lua code, if the version is set to Lua 5.2, Lua 5.1 or Lua JIT.
Expected error: lua5.1: luatest.lua:9: ambiguous syntax (function call x new statement) near '('
Actual Behaviour
Syntax is accepted, as it would be expected for Lua 5.3 and Lua 5.4.
nestedFunction"My function" (
function ()
print"Hello"end)
Log File
No response
The text was updated successfully, but these errors were encountered:
sewbacca
changed the title
Invalid syntax double function call syntax is not squiggled for Lua version prior 5.2
Invalid syntax double function call syntax is not squiggled for Lua version and prior 5.2
Aug 1, 2022
sewbacca
changed the title
Invalid syntax double function call syntax is not squiggled for Lua version and prior 5.2
Invalid syntax double function call syntax is not squiggled for Lua version 5.2 and prior
Aug 1, 2022
sewbacca
changed the title
Invalid syntax double function call syntax is not squiggled for Lua version 5.2 and prior
Invalid double function call syntax is not squiggled for Lua version 5.2 and prior
Aug 1, 2022
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
Syntax squiggles, notifying invalid Lua code, if the version is set to Lua 5.2, Lua 5.1 or Lua JIT.
Expected error:
lua5.1: luatest.lua:9: ambiguous syntax (function call x new statement) near '('
Actual Behaviour
Syntax is accepted, as it would be expected for Lua 5.3 and Lua 5.4.
Reproduction steps
Additional Notes
Correct function call for 5.2 and prior would be:
Log File
No response
The text was updated successfully, but these errors were encountered: