Update yaml to 1.10.2 (#10516)
This commit is contained in:
1 parent
3995c2a1a1
commit
169faf39ac
7 files changed
+190
-3
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#### Fix SyntaxError incorrectly thrown on anchors followed by empty lines (#10516 by @eemeli & @thorn0)
|
||||
|
||||
Prettier couldn't parse this valid YAML. Thanks to Eemeli Aro for fixing this bug in the underlying parser.
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```yaml
|
||||
# Input
|
||||
key1: &default
|
||||
|
||||
subkey1: value1
|
||||
|
||||
key2:
|
||||
<<: *default
|
||||
|
||||
# Prettier stable
|
||||
SyntaxError: Nested mappings are not allowed in compact mappings (1:7)
|
||||
|
||||
# Prettier main
|
||||
key1: &default
|
||||
subkey1: value1
|
||||
|
||||
key2:
|
||||
<<: *default
|
||||
```
|
||||
Reference in new issue
Block a user