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

YAML parser doesn't recognize flow-style multi-line strings #27

Closed
natronium opened this issue Jun 17, 2017 · 0 comments · Fixed by #166
Closed

YAML parser doesn't recognize flow-style multi-line strings #27

natronium opened this issue Jun 17, 2017 · 0 comments · Fixed by #166
Labels

Comments

@natronium
Copy link

This is valid YAML/KSY that contains a flow-folded string[1][2][3].

meta:
  id: example
  file-extension: example
seq:
  - id: stringdemo
    size: 0
    doc: This is a flow-style
      multi-line string

But causes the web IDE's YAML parser to throw a ParseException:
YAML parsing error: <ParseException> Unable to parse. (line 8: ' multi-line string')

Quoting the string (with ' or ") causes the parser to throw this exception instead:
YAML parsing error: <ParseException> Malformed inline YAML string ('This is a flow-style). (line 7: 'doc: 'This is a flow-style ')

  1. Flow folding from official spec
  2. Flow-style strings from official spec
  3. Some friendlier unofficial YAML docs (The list in the second half of the 'Scalars' section in particular)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants