Skip to content
New issue

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

goto statements are parsed as errors #116

Open
omniraptorr opened this issue May 9, 2020 · 1 comment
Open

goto statements are parsed as errors #116

omniraptorr opened this issue May 9, 2020 · 1 comment

Comments

@omniraptorr
Copy link

omniraptorr commented May 9, 2020

-- this code works fine but is highlighted as an error in the editor
for z=1,10 do
  for y=1,10 do
    for x=1,10 do
      if x^2 + y^2 == z^2 then
        print('found a Pythagorean triple:', x, y, z)
        goto done
      end
    end
  end
end
::done::
@onelivesleft
Copy link
Collaborator

The package uses moonsharp-luaparse to parse lua, and that package is not currently recognizing goto. When it gets updated we'll start using the new version, which will fix this issue. I'll leave this open til then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants