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
locala=" sss "print('"' ..a..'"')
locala=[[ sss ]] -- bug with a leading spacesprint('"' ..a..'"')
locala=[[sss]]print('"' ..a..'"')
locala=[[sss]]print('"' ..a..'"')
locala=[[sss]] -- bug with a leading spaceprint('"' ..a..'"')
locala=[[sss]]print('"' ..a..'"')
locala=[[sss]]print('"' ..a..'"')
locala=[[sss]] -- bug with a leading spaceprint('"' ..a..'"')
Parser should produce strings according to Lua rules - in a long string only the first line break is removed, but if it is the first
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
Parser should produce strings according to Lua rules - in a long string only the first line break is removed, but if it is the first
Actual Behaviour
The leading spaces were skipped, presumably due to the fact that these are not tokens. Or I don't know
lua-language-server/script/parser/compile.lua
Lines 429 to 430 in cb964c6
lua-language-server/script/parser/compile.lua
Lines 381 to 394 in cb964c6
Reproduction steps
[[ sss ]]
[[sss ]]
Additional Notes
This also breaks the colorization in addition to #3032, most likely because it breaks the start/finish positions #3028
Log File
No response
The text was updated successfully, but these errors were encountered: