Collection Indicators
|
Key indicator |
|
Value indicator |
|
Nested series entry indicator |
|
Separate in-line branch entries |
|
Surround in-line series branch |
|
Surround in-line keyed branch |
Scalar Indicators
|
Surround in-line unescaped scalar ('' escaped ') |
|
Surround in-line escaped scalar (see escape codes below) |
|
Block scalar indicator |
|
Folded scalar indicator |
|
Strip chomp modifier ( |
|
Keep chomp modifier ( |
|
Explicit indentation modifier ( Modifiers can be combined ( |
Alias Indicators
|
Anchor property |
|
Alias indicator |
Tag Property (usually unspecified)
|
Unspecified tag (automatically resolved by application) |
|
Non-specific tag (by default, |
|
Primary (by convention, means a local |
|
Secondary (by convention, means |
|
Requires |
|
Verbatim tag (always means |
Document Indicators
|
Directive indicator |
|
Document header |
|
Document terminator |
Misc Indicators
|
Throwaway comment indicator |
|
Both reserved for future use |
Special Keys
|
Default "value" mapping key |
|
Merge keys from another mapping |
Core Types (default automatic tags)
|
|
|
|
|
Unicode string |
More Types
|
|
|
|
Language Independent Scalar Types
|
Null (no value) |
|
|
|
|
|
|
|
Boolean true |
|
Boolean false |
? !!binary > R0lG...BADS= |
>- Base 64 binary value |
Escape Codes
Numeric "\x12" : 8-bit "\u1234" : 16-bit "\U00102030" : 32-bit |
|
Protective "\\" : '\' "\"" : '"' "\ " : ' ' "\<TAB>" : TAB |
|
C "\0": NUL "\a": BEL "\b": BS "\f": FF "\n": LF "\r": CR "\t": TAB "\v": VTAB |
|
Additional "\e": ESC "\_": NBSP "\N": NEL "\L": LS "\P": PS |
Notes
- Based on the YAML.org refcard.