Ethiraric
62c10c012d
Run all tests on both StrInput and BufferedInput.
2024-10-20 18:32:39 +02:00
jneem
d82866555a
Look ahead before testing for EOF. ( #12 )
...
Look ahead before testing for EOF.
This fixes panics in saphyr's test_multiline_trailing_newline and
test_multiline_leading_newline tests, in which `self.input.next_is_z`
would be called on an empty buffer and panic in `peek`
2024-10-13 14:48:06 +02:00
Eduardo Sánchez Muñoz
6c57b5b5e4
Add "explicit" flag to Event::DocumentStart
( #5 )
...
Allows the event consumer to know whether the document explicitly starts with a `---`
2024-08-05 17:23:04 +02:00
Ethiraric
c3d83fbfe1
Fix warnings.
2024-06-13 22:05:43 +02:00
Ethiraric
6b01b554e0
yaml-rust2
-> saphyr-parser
...
* Drop non-parser files
* Rename everything
* Fix tests
* Start rewriting a bit of docs
2024-04-02 17:14:06 +02:00
David Aguilar
c00b27bb95
parser: add Parser::new_from_str(&str)
2024-03-25 00:06:10 +01:00
Ethiraric
2481df7f9d
Update licence, readme, doc.
2024-02-08 07:12:14 +01:00
Ethiraric
19bd49865f
Add debugging helpers.
2024-01-23 00:19:04 +01:00
Ethiraric
91ed5dca21
Clippy set to pedantic.
2023-08-14 16:11:33 +02:00
David Tolnay
5039af6862
Format with rustfmt 0.99.4
2018-09-15 09:49:08 -07:00
Charlie Ozinga
9b21f8026a
Merge branch 'master' of https://github.com/chyh1990/yaml-rust into chyh1990
2017-07-10 10:05:43 -06: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
Charlie Ozinga
9649b1486e
Remove extraneous debug output from test
2017-05-11 23:36:51 -06:00
Charlie Ozinga
528164d6e6
Fix nested arrays, emit compact in-line
2017-05-11 23:29:41 -06:00
Charlie Ozinga
818fed42b0
Rebased and resolved conflicts with the following:
...
https://github.com/chyh1990/yaml-rust/pull/66
https://github.com/chyh1990/yaml-rust/pull/62 (closed in favor of 66)
2017-05-11 12:36:38 -06:00
David Tolnay
cec5189c13
Fix clippy complaints
2017-05-08 11:35:53 -07:00
Yuheng Chen
a566c7647c
remove trailing space
2015-06-30 00:31:22 +08:00
Yuheng Chen
8e629d4637
Add tag:yaml.org,2002 parsing
2015-05-30 22:39:50 +08:00
Yuheng Chen
6b61f4357d
Add scan_uri_escapes
2015-05-30 18:49:54 +08:00
Yuheng Chen
9a917eaf29
Add alias event
2015-05-29 02:26:37 +08:00
Yuheng Chen
5d0683c396
Add partial anchor support
2015-05-29 01:56:03 +08:00
Yuheng Chen
443b3a2932
Fix parsing bugs
...
1. empty key & value support
2. OnNull handling in test
2015-05-27 23:04:03 +08:00
Yuheng Chen
3224240613
Change empty scalar definition
2015-05-27 21:57:42 +08:00
Yuheng Chen
63c0a32918
Refactory YAML document loader
2015-05-27 14:57:44 +08:00
Yuheng Chen
8e43d42621
Add block_scalar
2015-05-27 00:29:40 +08:00
Yuheng Chen
7d1fa94d0d
Add multidoc support
2015-05-26 16:41:35 +08:00
Yuheng Chen
61eede515d
Add test spectest
2015-05-26 15:52:02 +08:00