Commit graph

47 commits

Author SHA1 Message Date
David Tolnay
34da7f5f01 Replace try! with question mark 2018-09-15 23:58:48 -07:00
David Tolnay
5039af6862 Format with rustfmt 0.99.4 2018-09-15 09:49:08 -07:00
David Tolnay
b75f13e7d3 Merge branch 'master' into prevent-too-deep-recursion 2018-09-15 09:16:25 -07:00
Konrad Borowski
bbb80f1ee7 Prevent too deep recursion 2018-09-15 12:34:21 +02:00
Hendrik Sollich
97f208bf76 Add tests to show expected indentation interpretation 2018-06-22 21:17:16 +02:00
Yuheng Chen
f050b83e4a Fix warning 2018-01-02 14:57:27 +08:00
Christian Hofer
6600c8f4c5 Always pass events by value
- The EventReceiver gets ownership of events
- Breaks compatilibility with previous interface
2017-06-19 15:41:26 +02:00
Christian Hofer
28d17fa242 Allow clients ownership of events
Also: Optimize built-in Yaml deserializer to avoid one scalar value cloning step.
2017-06-14 10:29:27 +02:00
Hendrik Sollich
083df3ce4c correctly emitting nested arrays
fixed #70 too
2017-06-10 23:43:15 +02:00
Yuheng Chen
b5f5b66d6e Allow use integer as key to access HashMap
Fix #61
2017-05-13 21:55:32 +08:00
Yuheng Chen
a5c49b9922 Parse special f64 in tag 2017-05-13 21:22:19 +08:00
Yuheng Chen
c3a9141330 Add special f64 parsing
Fix #51
2017-05-13 21:17:35 +08:00
Yuheng Chen
4c7a335bac Fix #65 2017-05-13 20:48:48 +08:00
David Tolnay
dcfb2bab95 Switch from clippy dependency to cargo-clippy 2017-05-08 11:30:51 -07:00
David Tolnay
316eecbbdc Always preserve order 2017-01-27 20:59:51 -08:00
Martin Hoffmann
e09485ea92 Make YamlLoader implement MarkedEventReceiver. 2016-11-11 11:53:31 +01:00
Yuheng Chen
93e7192485 Fix clippy warning 2016-09-22 16:54:51 +08:00
Matthew Piziak
79630e0cd1 properly wrap Vec's IntoIter property 2016-08-08 18:21:57 -04:00
Matthew Piziak
b1b5526cf0 remove clone from into_iter 2016-08-08 17:52:24 -04:00
Matthew Piziak
3adfd05000 implement IntoIterator for Yaml 2016-08-08 17:34:38 -04:00
Matthew Piziak
2c520ebead add into_ counterparts for all as_ methods
fix #28
2016-08-07 22:25:30 -04:00
Yuheng Chen
7783c68d5f Use empty_scalar_with_anchor properly
This closes #27.
2016-07-28 17:36:25 +08:00
Hendrik Sollich
20cf5959cf Fix logic error that caused infinite loop 2016-06-23 00:22:03 +02:00
Hendrik Sollich
cb28e81e69 returning ScanError instead of running unreachable!()
fixes #23
2016-06-22 15:54:22 +08:00
Yuheng Chen
a3ecc9f2d4 Fix assert fail on empty document
This closes #20
2016-05-25 13:25:56 +08:00
David Tolnay
ee853ebaba Add preserve_order feature to use LinkedHashMap instead of BTreeMap 2016-03-20 17:24:06 -07:00
Chen Yuheng
52e86e402b Merge pull request #14 from dtolnay/grammar
Grammar in rustdoc
2016-03-10 20:54:07 +08:00
Yuheng Chen
59234a4a2a Fix clippy warnings about not 2016-03-10 20:49:24 +08:00
David Tolnay
6d28d041cf Grammar in rustdoc 2016-03-10 01:55:21 -08:00
David Tolnay
6ba6fec475 Resolve remaining clippy lints and add to Travis build 2016-02-27 16:42:32 -08:00
David Tolnay
b3c34c4f29 Remove common suffix from TokenType enum
See https://github.com/Manishearth/rust-clippy/wiki#enum_variant_names
2016-02-27 15:29:36 -08:00
GaveUp
2a0cac7181 Fix tests on 1.0.0 and 1.1.0. 2016-02-07 16:21:05 -06:00
GaveUp
ae6329df30 Add hex and octal integer support. 2016-02-07 15:52:20 -06:00
Yuheng Chen
b2f3fa49b8 Add alias deserialize support 2015-12-16 15:10:02 +08:00
Yuheng Chen
a566c7647c remove trailing space 2015-06-30 00:31:22 +08:00
Yuheng Chen
691f9d942f Add document 2015-05-31 17:59:43 +08:00
Yuheng Chen
8e629d4637 Add tag:yaml.org,2002 parsing 2015-05-30 22:39:50 +08:00
Yuheng Chen
5d0683c396 Add partial anchor support 2015-05-29 01:56:03 +08:00
Yuheng Chen
1b636097c0 Fix test_spec_ex7_3 2015-05-28 17:18:20 +08:00
Yuheng Chen
63c0a32918 Refactory YAML document loader 2015-05-27 14:57:44 +08:00
Yuheng Chen
840ccc939f Add scanner unit tests 2015-05-25 19:32:48 +08:00
Yuheng Chen
8fbdf0be81 Add scalar coersion 2015-05-25 13:54:39 +08:00
Yuheng Chen
1e43e9de95 Add parse for Yaml 2015-05-25 03:29:52 +08:00
Yuheng Chen
78134e144f Add scan_flow_scalar 2015-05-25 03:21:53 +08:00
Yuheng Chen
a8ab8ebc27 Add Index trait for YAML node 2015-05-25 02:16:28 +08:00
Yuheng Chen
f49d6c0099 Add yaml value coerce 2015-05-25 01:34:18 +08:00
Yuheng Chen
d03dec2197 Initial commit 2015-05-24 14:27:42 +08:00