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 Each Blocks should have consistent behavior. #1156

Merged
merged 2 commits into from
Feb 11, 2018

Conversation

Crisfole
Copy link
Contributor

@Crisfole Crisfole commented Feb 7, 2018

Here the error-each-blocks-empty behaves as expected. It throws a ParseError.
I can't get the whitespace errors to repro in the tests. They're easily seen
here: https://svelte.technology/repl?version=1.51.0&gist=b53b31b1c18ef80ff35067e02a9e7199

If you uncomment each section in sequence it demonstrates the behavior. I can't
quite figure out why my examples don't work.

Here the `error-each-blocks-empty` behaves as expected. It throws a ParseError.
I can't get the whitespace errors to repro in the tests. They're easily seen
here: https://svelte.technology/repl?version=1.51.0&gist=e1596f9631619a689e85c80e46506692

If you uncomment each section in sequence it demonstrates the behavior. I can't
quite figure out why my examples don't work.
@Rich-Harris Rich-Harris merged commit b55ccc6 into sveltejs:master Feb 11, 2018
Rich-Harris added a commit that referenced this pull request Feb 11, 2018
[WIP] Error on unclosed comments and blocks with no content
@Rich-Harris
Copy link
Member

As of 1.55 empty each blocks are a dev-mode warning, not an error

@Crisfole
Copy link
Contributor Author

🥇 well done!

@Crisfole Crisfole deleted the empty-each-blocks branch February 12, 2018 02:46
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

Successfully merging this pull request may close these issues.

2 participants