yaml-peg 1.0.9

A YAML 1.2 parser using a greedy parsing algorithm with PEG atoms.
%YAML 1.2
%TAG !! tag:test.prefix:
%TAG !x! tag:test.x.prefix:
--- !x!root
a0 bb: !x!foo .val.
::a1:  # Test comment after wrapped! (1)
  b1  : 4.
  b2:
    - 123   abc
    - 50%
    - 0o10
    - 0x10
    - 2e-4
    - .nan
    - -.inf
    - -.infs
    - 2001-11-23 15:01:42 -5
    - https://www.google.com/
-a2: !!t1 4.03  # Test comment after normal scalars.
?  # Test comment after wrapped! (2)
  - q
  - r  # Test comment after plain string...
  - s
: !!t2 { 1: 2, 3:4 }  # Test comment after wrapped! (3)
?a3: !<tag:my.tag.prefix:tt>
  - [d1πŸ€„πŸƒ, δΈ­ζ–‡]
  - &x ~
  - *x
  -
? &y
  a4:
: -30
? *y: b3, b4
# Test wrapping
? test
  multiline:
  - folded: >
      aaa{}[]
      bbb
        ccc

        ddd

      # eee
    literal: |
      aaa{}[]
      bbb
        ccc

        ddd

      # eee
  - plain: aaa{}[] "bbb" 'ccc',
      ddd\n

      eee
        fff

      # ggg
    single quoted: 'aaa{}[] "bbb" ''ccc'',
      ddd\n

      eee
        fff

      # ggg'
    double quoted: "aaa{}[] \"bbb\" 'ccc',
      dd\
      d\\n\n
      eee
        fff

      # ggg"
  - |+
    literal

  - >-
    literal

---
# Reveal.yaml test (compact mode)
title: Images
fit:
- a
- b
sub:
- title: Lay with Images
  lay-img:
  - src: https://placekitten.com/450/450
    frag: fade-right
  - src: https://placekitten.com/600/300
    frag: fade-left
...