michael@356: %YAML 1.1 # Reference card michael@356: --- michael@356: Collection indicators: michael@356: '? ' : Key indicator. michael@356: ': ' : Value indicator. michael@356: '- ' : Nested series entry indicator. michael@356: ', ' : Separate in-line branch entries. michael@356: '[]' : Surround in-line series branch. michael@356: '{}' : Surround in-line keyed branch. michael@356: Scalar indicators: michael@356: '''' : Surround in-line unescaped scalar ('' escaped '). michael@356: '"' : Surround in-line escaped scalar (see escape codes below). michael@356: '|' : Block scalar indicator. michael@356: '>' : Folded scalar indicator. michael@356: '-' : Strip chomp modifier ('|-' or '>-'). michael@356: '+' : Keep chomp modifier ('|+' or '>+'). michael@356: 1-9 : Explicit indentation modifier ('|1' or '>2'). michael@356: # Modifiers can be combined ('|2-', '>+1'). michael@356: Alias indicators: michael@356: '&' : Anchor property. michael@356: '*' : Alias indicator. michael@356: Tag property: # Usually unspecified. michael@356: none : Unspecified tag (automatically resolved by application). michael@356: '!' : Non-specific tag (by default, "!!map"/"!!seq"/"!!str"). michael@356: '!foo': Primary (by convention, means a local "!foo" tag). michael@356: '!!foo': Secondary (by convention, means "tag:yaml.org,2002:foo"). michael@356: '!h!foo': Requires "%TAG !h! " (and then means "foo"). michael@356: '!': Verbatim tag (always means "foo"). michael@356: Document indicators: michael@356: '%' : Directive indicator. michael@356: '---' : Document header. michael@356: '...' : Document terminator. michael@356: Misc indicators: michael@356: ' #' : Throwaway comment indicator. michael@356: '`@' : Both reserved for future use. michael@356: Special keys: michael@356: '=' : Default "value" mapping key. michael@356: '<<' : Merge keys from another mapping. michael@356: Core types: # Default automatic tags. michael@356: '!!map' : [ Hash table, dictionary, mapping ] michael@356: '!!seq' : [ List, array, tuple, vector, sequence ] michael@356: '!!str' : Unicode string michael@356: More types: michael@356: '!!set' : { cherries, plums, apples } michael@356: '!!omap' : [ one: 1, two: 2 ] michael@356: Language Independent Scalar types: michael@356: { ~, null } : Null (no value). michael@356: { 1234, 0x4D2, 02333 } : [ Decimal int, Hexadecimal int, Octal int ] michael@356: { 1_230.15, 12.3015e+02 } : [ Fixed float, Exponential float ] michael@356: { .inf, -.Inf, .NAN } : [ Infinity (float), Negative, Not a number ] michael@356: { Y, true, Yes, ON } : Boolean true michael@356: { n, FALSE, No, off } : Boolean false michael@356: ? !!binary > michael@356: R0lG...BADS= michael@356: : >- michael@356: Base 64 binary value. michael@356: Escape codes: michael@356: Numeric : { "\xXX": 8-bit, "\uXXXX": 16-bit, "\UXXXXXXXX": 32-bit } michael@356: Protective: { "\\": '\', "\"": '"', "\ ": ' ', "\": "", "\^": '^' } michael@356: C: { "\a": BEL, "\b": BS, "\f": FF, "\n": LF, "\r": CR, "\t": TAB, "\v": VTAB } michael@356: Additional: { "\e": ESC, "\0": NUL, "\_": NBSP, "\N": NEL, "\L": LS, "\P": PS } michael@356: ...