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

Make outermost block parsing more consistent with block parsing #628

Open
CohenArthur opened this issue Oct 21, 2023 · 0 comments
Open

Make outermost block parsing more consistent with block parsing #628

CohenArthur opened this issue Oct 21, 2023 · 0 comments
Labels
good first issue Good for newcomers parser Parser issue priority [low] Low priority issue

Comments

@CohenArthur
Copy link
Member

currently, the outermost scope behaves differently from a block:

{
    call()
    call()
}

fails to parse, but

call()
call()

succeeds. note the lack of semicolon after the first call(). this should error out in both cases - only the last expression of a block, if any, is allowed to not have a semicolon

@CohenArthur CohenArthur added good first issue Good for newcomers parser Parser issue priority [low] Low priority issue labels Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers parser Parser issue priority [low] Low priority issue
Projects
None yet
Development

No branches or pull requests

1 participant