-
-
Notifications
You must be signed in to change notification settings - Fork 770
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
bug in parsing #693
Comments
That sentence is just a clarification of the context around it. The point of the sentence is to say that (from the examples that follow the statement) you can do this:
instead of this:
and this:
instead of this:
|
For the record, YAML doesn't support compact block mappings
even though it does support compact block sequences:
and also compact block mapping in sequence:
|
Thanks for the clarifications. In my honest opinion, the spec could have been a bit more precise and express syntax in a more conventional, formal way. Alas, we shall have to live with it. |
The YAML 1.2.2 spec states:
"Within a block collection, key/value pairs can start immediately following the dash, colon or question mark."
This implies that "a: b: c: d: - 1" is a valid YAML document. js-yaml however issues an error message.
The text was updated successfully, but these errors were encountered: