source: pyyaml/trunk/tests/data/fetch-complex-value-bug.loader-error @ 188

Revision 188, 17 bytes checked in by xi, 11 years ago (diff)

Fix several problems caused by ill-formed documents.

The line number is not calculated correctly for DOS-style line breaks.

Fix error reporting in remove_possible_simple_key. The problem is caused by the document:

+foo: &A bar
+*A ]

Raise an error for a complex key which is not indented correctly, for instance:

? "foo"
 : "bar"
[188]1? "foo"
2 : "bar"
Note: See TracBrowser for help on using the repository browser.