Closed GoogleCodeExporter closed 9 years ago
It seems to occur when processing an error in the midst of a mapping parse.
Original comment by shr...@gmail.com
on 29 Sep 2009 at 5:56
[deleted comment]
May I ask you to provide a test to see the problem ?
(what is the YAML document? What is the code you parse with?)
Original comment by py4fun@gmail.com
on 29 Sep 2009 at 8:43
Sorry. I was getting off by one line errors all the time I thought it was
obvious.
I have been playing with yaml to see what is possible and getting into cases
where
inside a mapping, I do something wrong. I have them. I experiment again to
find
another.
For example, replacing the : after peppery to , makes it possible to get past
the
error. Indicating the error is on the wrong line.
expected ',' or '}', but got :
line 3, column 11
- options:
- pop : &tasty {
banana: coconut
peppery: salty
}
- &toppings
peanut: almond
berry: cream
- &yummny
<<: *tasty
others:
<<: *toppings
toast: cinamon
berry: jam
Original comment by shr...@gmail.com
on 29 Sep 2009 at 9:32
Another mistake makes interesting claims of line numbers.
- options:
- pop : &tasty
banana: coconut
peppery: salty
- &toppings
peanut: almond
berry: cream
- &yummny
<<: *tasty
others:
<<: *toppings
toast: cinamon
berry: jam
Original comment by shr...@gmail.com
on 29 Sep 2009 at 9:34
Original comment by py4fun@gmail.com
on 8 Oct 2009 at 8:14
Original comment by py4fun@gmail.com
on 12 Oct 2009 at 8:44
Original issue reported on code.google.com by
shr...@gmail.com
on 29 Sep 2009 at 4:44