majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Problem with flow style map #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following flow style map should parse OK (I think):
  Numbers: [ one: 1,two: 2, three: 3 ]

If I call GetNextDocument() on this example, I get the follwing error
  ERROR: end of sequence flow not found

Fredo

Original issue reported on code.google.com by fmor...@yahoo.de on 4 Jun 2009 at 12:15

GoogleCodeExporter commented 9 years ago
The square brackets '[]' denote sequences. To make that a flow map, you should 
use '{}'. Also, you get an error 
here because plain scalars can't contain ": ".

Thanks for your interest!

Original comment by jbe...@gmail.com on 4 Jun 2009 at 4:59