# This is a comment
%YAML 1.2
%TAG !yaml! tag:yaml.org,2002:
%TAG ! tag:yaml.org,2002:
%TAG !! tag:yaml.org,2002:
--- !<tag:yaml.org,2002:map>
plain_scalar: plain scalar with spaces
plain scalar with spaces in key: &anchor !<tag:yaml.org,2002:str> |-4 # Comment
    # Comment, anchor, tag, literal indicator with chomping and indentation 
    # indicators: good line, is not it?
    literal string
    literal string, second line (will show two lines in output)
"flow scalar, \" (double) quotes": >5
     Folded string.
     This second line is really joined with first one.

     # Comment inside a scalar
     But this fourth line
     will not be joined with the fifth
        * further indented lines
        * are not joined either
'flow scalar, '' (single) quotes':
    plain scalar on the second line
'And': >
    Folded string without explicit indentation setting.
? Mapping with explicit key
: *anchor
? 'Another mapping with explicit key'
:
    - Block style collection
    - Second entry
? "Unicode character \uE0A0 is a branch symbol in powerline"
: [
    Flow collection allows implicit mappings:
        # Be careful. String “previous was a key” is not a part of value
        this line is a value, previous was a key,
    0.05e-5, 0x12_34, 0b1000, 0xABC_DEF, .inf, .NaN, .Inf, -.inf, # Numbers
    -.NaN # This one is a string.
]
? "This character can also be written as \U0000E0A0"
: {
    "Block-style dictionary":allows omitting spaces after colon,
}
Spaces before colon : can also be omitted
But omitting spaces after:leads to having plain scalar:
Value for previous key written explicitely: null
False: True
Escapes: "\0 \x00 \u0000 \U00000000 \
    \\ \a \b \e \f \n \r \t \v \
    \  \_ \N \L \P \""
Tags:
    - !str abc
    - !!str def
    - !<tag:yaml.org,2002:str> ghi
