-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
SyntaxError: Sequence items are not allowed on the same line with map keys #10
Comments
This is a frankly ludicrous corner case that you've managed to find. Will dig into this a bit more later, but here's the minimal case that I've been able to break it down to: - a
- b:
- c
- d If you remove any part of that, the bug is not triggered. |
Tried on the current master 024e81d, the case mentioned above is fixed, but if I tried to parse the entire file (https://github.com/prettier/prettier/blob/d0cd112/.circleci/config.yml) it fails again, it seems the entire file should be a good test case. Here's the minimal failed part (probably): aliases:
- save_cache:
paths:
- ~/.cache/yarn
key: v1-yarn-cache
- keys:
|
Friendly ping @eemeli, should I open another issue to track it? |
Nah, this is still good for tracking this. Sorry for the delay, have been busy with some other things recently. Will return to this hopefully later today, but at least within a few days. |
Sorry for the bad title, I'm not sure how to name this issue.
version:
1.0.0-beta.6
input:
(extract from https://github.com/prettier/prettier/blob/d0cd112/.circleci/config.yml)
output:
expected:
no error.
P.S. It parses correctly if there's no indentation:
The text was updated successfully, but these errors were encountered: