lua-language-server
lua-language-server copied to clipboard
Redundant "Unable to execute code after break" diagnostic is given when using a label after a break
How are you using the lua-language-server?
Kakoune
Which OS are you using?
Linux
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
No diagnostic is given.
Actual Behaviour
A diagnostic Unable to execute code after 'break' is given, even though the only thing after the break is a label.
Reproduction steps
Reproducible with the following code:
for i = 1, 10 do
if i < 8 then
print(i)
goto continue
end
break
::continue::
end
Additional Notes
No response
Log File
The log isn't very relevant in this case but here it is anyway. luals.log