Skip to content

Commit 0c4db5c

Browse files
committed
Parser: ensure error on map colons on newlines
1 parent c848fc7 commit 0c4db5c

File tree

6 files changed

+644
-302
lines changed

6 files changed

+644
-302
lines changed

changelog/current.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
- [PR#585](https://github.com/biojppm/rapidyaml/pull/585): ensure parse errors for invalid YAML cases:
2-
- colon on newline at top level ([play](https://play.yaml.com/?show=xd#c2NhbGFyCjogYmFkCi0tLQpbc2VxXQo6IGJhZAotLS0KW21hcF0KOiBiYWQK)):
1+
- Ensure parse errors for invalid YAML cases:
2+
- [PR#585](https://github.com/biojppm/rapidyaml/pull/585): colon on newline at top level ([play](https://play.yaml.com/?show=xd#c2NhbGFyCjogYmFkCi0tLQpbc2VxXQo6IGJhZAotLS0KW21hcF0KOiBiYWQK)):
33
```yaml
44
scalar
55
: bad
66
---
77
[seq]
88
: bad
99
---
10-
[map]
10+
{map: }
1111
: bad
1212
```
13+
- [PR#586](https://github.com/biojppm/rapidyaml/pull/586): colon on newline generally ([play](https://play.yaml.com/?show=xd#c2NhbGFyCjogYmFkCi0tLQpbc2VxXQo6IGJhZAotLS0KW21hcF0KOiBiYWQK)):
14+
```yaml
15+
bad cases:
16+
scalar
17+
: bad
18+
[seq]
19+
: bad
20+
{map: }
21+
: bad
22+
```

0 commit comments

Comments
 (0)