Commit Graph

343 Commits

Author SHA1 Message Date
Kirill Simonov
149a437eda Fixed #15 (pyyaml discards '-' sign on negative floats).
Thanks to alex_(a)_alexmole_(o)_co_(o)_uk for reporting the bug.
2006-05-21 07:26:05 +00:00
Kirill Simonov
810977b416 Dynamically determine the inf and nan values. Should fix #14.
Thanks to Scott Daniels for the report and the patch.
2006-05-15 18:43:58 +00:00
Kirill Simonov
eefe5f7241 Final touches before the release. 2006-05-15 11:24:32 +00:00
Kirill Simonov
da8f3caa44 Preparing the next release. 2006-05-15 06:49:37 +00:00
Kirill Simonov
f87fec835e Rename yaml-hl to yaml-highlight. 2006-05-15 06:49:03 +00:00
Kirill Simonov
6fc24b4387 Load yaml_hl.cfg from the script path. 2006-05-14 15:12:42 +00:00
Kirill Simonov
c3ab1fbdde Add the announcement message. 2006-05-12 09:17:39 +00:00
Kirill Simonov
d694099649 Remake the YAML highlighting example. 2006-05-12 09:14:33 +00:00
Kirill Simonov
9bd0b4e531 Fix a bug in add_path_resolver: map -> dict. 2006-05-11 21:27:20 +00:00
Kirill Simonov
8f22ae6de3 Final touches before the initial release. 2006-05-07 14:36:42 +00:00
Kirill Simonov
43ffedd470 Allow first=None for add_implicit_resolver. 2006-05-07 14:02:42 +00:00
Kirill Simonov
dd2da8afa4 Fix a bug in a test. 2006-05-06 22:12:53 +00:00
Kirill Simonov
74f8caa6fb Fix #11 (Thanks to edemaine(at)mit.edu). 2006-05-06 22:09:50 +00:00
Kirill Simonov
80ba450695 Add a way to override default style chosen by Representer: fix #9 2006-05-04 10:46:11 +00:00
Kirill Simonov
cd21dc64a9 1e30000 => 1e300000 2006-04-23 18:13:32 +00:00
Kirill Simonov
410d822bd5 Prepare setup.py for release. Fix #7. 2006-04-23 18:07:52 +00:00
Kirill Simonov
fc01755908 Raise an error for colons in the flow context. 2006-04-23 13:40:57 +00:00
Kirill Simonov
e8eed6301b Sort object attributes. 2006-04-22 21:08:32 +00:00
Kirill Simonov
c87ce16706 Add support for pickling/unpickling python objects. 2006-04-22 20:40:43 +00:00
Kirill Simonov
cce15169da Fix !!python/name for Python 2.3. Clear the yaml module namespace. 2006-04-21 17:31:29 +00:00
Kirill Simonov
93bb470320 Fix yaml-hl to use the new API. 2006-04-20 16:48:21 +00:00
Kirill Simonov
89cc4e3e4f Add more unit tests. 2006-04-18 19:33:30 +00:00
Kirill Simonov
80ed3f1f57 Fix bugs in emitter and representer. 2006-04-18 19:33:16 +00:00
Kirill Simonov
c9aec90fde Add support for recursive nodes to Composer. Constructor does not support recursive objects though. 2006-04-18 17:15:54 +00:00
Kirill Simonov
95b3cef7eb Add more unit tests for error messages. 2006-04-18 16:48:00 +00:00
Kirill Simonov
24f8ae0e00 Rename error-message to loader-error and add new examples. 2006-04-18 14:35:46 +00:00
Kirill Simonov
19e134b5e9 Add constructors for some simple python types. 2006-04-18 14:35:28 +00:00
Kirill Simonov
ea23091a5b Fix #4 (Thanks to murphy(at)rubychan.de) 2006-04-17 06:42:08 +00:00
Kirill Simonov
b12e7fea10 Refactor resolver. 2006-04-16 23:45:21 +00:00
Kirill Simonov
6a97abb4c7 Major refactoring. 2006-04-15 23:54:52 +00:00
Kirill Simonov
fcf5d614a9 Fix allow_unicode (ticket:3). 2006-04-12 22:26:41 +00:00
Kirill Simonov
cc316a4699 Implement yaml.dump(). 2006-04-11 00:34:16 +00:00
Kirill Simonov
2d457ba718 Emitter is done!!! 2006-04-09 19:51:02 +00:00
Kirill Simonov
01b5e1925b Working on emitter: implement the state machine. 2006-04-03 23:23:10 +00:00
Kirill Simonov
268bb76831 Add style information to events generated by Parser. 2006-04-03 18:20:25 +00:00
Kirill Simonov
be2d1981fb Fix the project url. 2006-03-26 22:58:11 +00:00
Kirill Simonov
3aa558459c Fix a test. 2006-03-19 15:42:44 +00:00
Kirill Simonov
d2e8000f09 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.
}}}
2006-03-19 15:41:32 +00:00
Kirill Simonov
8973bb473b * Add the token STREAM-START.
* Add parsing events: STREAM-START, DOCUMENT-START, DOCUMENT-END.
2006-03-19 13:00:38 +00:00
Kirill Simonov
6548cd6b67 Loose indentation rules for the following cases:
* In the flow context, indentation level is not checked.
 * For quoted scalars, indentation level is not checked.
 * Flow scalars are not required to have at least 1 space indentation. Zero indentation is acceptable.
2006-03-19 01:30:05 +00:00
Kirill Simonov
14ed697df4 Back to work :). Rename markers to marks. 2006-03-18 13:37:09 +00:00
Kirill Simonov
7c384c7e51 Rename pyyaml-ng to ppyyaml to make it simpler. 2006-03-05 22:19:08 +00:00
Kirill Simonov
4c570faa8b Move pyyaml3000 to a separate directory. 2006-03-04 22:43:48 +00:00