Source

pyyaml / lib / yaml / reader.py

Author Commit Message Labels Comments Date
Kirill Simonov
Fixed an issue with ReaderError generated by the LibYAML wrapper.
Kirill Simonov
Subclass all base classes from `object`. Hold references to the objects being represented (should fix #22). The value of a mapping node is represented as a list of pairs `(key, value)` now. Sort dictionary items (fix #23). Recursive structures are now loaded and dumped correctly, including complex structures like recursive tuples (fix #5). Thanks Peter Murphy for the patches. To make it possible, representer functions are allowed to b…
Kirill Simonov
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" }}}
Kirill Simonov
Revamp the inf/nan handling again.
Kirill Simonov
Major refactoring.
Kirill Simonov
Add style information to events generated by Parser.
Kirill Simonov
Add an example: yaml highlight script. Usage: {{{ $ cat your_yaml_document | ./yaml_hl.py # Produces colored ASCII output $ cat your_yaml_document | ./yaml_hl.py -c yaml_hl_html.cfg # Produces HTML output. }}}
Kirill Simonov
Back to work :). Rename markers to marks.
Kirill Simonov
Move pyyaml3000 to a separate directory.