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

Parser should allow arbitrary newlines inside of any bracket type #389

Open
sbillig opened this issue May 4, 2021 · 1 comment
Open

Comments

@sbillig
Copy link
Collaborator

sbillig commented May 4, 2021

What is wrong?

The parser allows any newlines inside of parentheses, but not inside square, angle, or curly brackets (unless they happen to be inside of parentheses 😅). The primary issue right now is that list expressions can't contain newlines.

(I could be convinced that newlines shouldn't be allowed in angle brackets, btw; I don't really care either way.)

How can it be fixed

The logic inside parser.rs that touches the paren_stack should be extended to all bracket types.

@sbillig
Copy link
Collaborator Author

sbillig commented Oct 22, 2021

This was probably implemented as part of #547, but I'm not in the mood to verify right now.

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

1 participant