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

empty loop transpiles incorrectly #459

Closed
TwitchBronBron opened this issue Oct 5, 2021 · 0 comments · Fixed by #519
Closed

empty loop transpiles incorrectly #459

TwitchBronBron opened this issue Oct 5, 2021 · 0 comments · Fixed by #519
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@TwitchBronBron
Copy link
Member

TwitchBronBron commented Oct 5, 2021

This code:

for i = 0 to 10
end for

incorrectly transpiles to:

for i = 0 to 10    end for

Here's a good unit test for this issue:

it.only('adds newline to end of loop', () => {
    testTranspile(`
        sub main()
            for i = 0 to 10
            end for
        end sub
    `);
});
@TwitchBronBron TwitchBronBron added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant