yaml/yaml.yml

changeset 592
d869aafb6416
parent 591
f65313225f8a
child 593
6a0daac879c0
     1.1 --- a/yaml/yaml.yml	Tue Aug 28 18:50:10 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,62 +0,0 @@
     1.4 -%YAML 1.1   # Reference card
     1.5 ----
     1.6 -Collection indicators:
     1.7 -     '? ' : Key indicator.
     1.8 -     ': ' : Value indicator.
     1.9 -     '- ' : Nested series entry indicator.
    1.10 -     ', ' : Separate in-line branch entries.
    1.11 -     '[]' : Surround in-line series branch.
    1.12 -     '{}' : Surround in-line keyed branch.
    1.13 -Scalar indicators:
    1.14 -    '''' : Surround in-line unescaped scalar ('' escaped ').
    1.15 -     '"' : Surround in-line escaped scalar (see escape codes below).
    1.16 -     '|' : Block scalar indicator.
    1.17 -     '>' : Folded scalar indicator.
    1.18 -     '-' : Strip chomp modifier ('|-' or '>-').
    1.19 -     '+' : Keep chomp modifier ('|+' or '>+').
    1.20 -     1-9 : Explicit indentation modifier ('|1' or '>2').
    1.21 -         # Modifiers can be combined ('|2-', '>+1').
    1.22 -Alias indicators:
    1.23 -     '&' : Anchor property.
    1.24 -     '*' : Alias indicator.
    1.25 -Tag property: # Usually unspecified.
    1.26 -    none : Unspecified tag (automatically resolved by application).
    1.27 -   '!'   : Non-specific tag (by default, "!!map"/"!!seq"/"!!str").
    1.28 -   '!foo': Primary (by convention, means a local "!foo" tag).
    1.29 -  '!!foo': Secondary (by convention, means "tag:yaml.org,2002:foo").
    1.30 - '!h!foo': Requires "%TAG !h! <prefix>" (and then means "<prefix>foo").
    1.31 - '!<foo>': Verbatim tag (always means "foo").
    1.32 -Document indicators:
    1.33 -    '%'  : Directive indicator.
    1.34 -   '---' : Document header.
    1.35 -   '...' : Document terminator.
    1.36 -Misc indicators:
    1.37 -    ' #' : Throwaway comment indicator.
    1.38 -    '`@' : Both reserved for future use.
    1.39 -Special keys:
    1.40 -    '='  : Default "value" mapping key.
    1.41 -    '<<' : Merge keys from another mapping.
    1.42 -Core types: # Default automatic tags.
    1.43 -    '!!map' : [ Hash table, dictionary, mapping ]
    1.44 -    '!!seq' : [ List, array, tuple, vector, sequence ]
    1.45 -    '!!str' : Unicode string
    1.46 -More types:
    1.47 -    '!!set' : { cherries, plums, apples }
    1.48 -   '!!omap' : [ one: 1, two: 2 ]
    1.49 -Language Independent Scalar types:
    1.50 -    { ~, null }               : Null (no value).
    1.51 -    { 1234, 0x4D2, 02333 }    : [ Decimal int, Hexadecimal int, Octal int ]
    1.52 -    { 1_230.15, 12.3015e+02 } : [ Fixed float, Exponential float ]
    1.53 -    { .inf, -.Inf, .NAN }     : [ Infinity (float), Negative, Not a number ]
    1.54 -    { Y, true, Yes, ON  }     : Boolean true
    1.55 -    { n, FALSE, No, off }     : Boolean false
    1.56 -    ? !!binary >
    1.57 -        R0lG...BADS=
    1.58 -    : >-
    1.59 -        Base 64 binary value.
    1.60 -Escape codes:
    1.61 - Numeric   : { "\xXX": 8-bit, "\uXXXX": 16-bit, "\UXXXXXXXX": 32-bit }
    1.62 - Protective: { "\\": '\', "\"": '"', "\ ": ' ', "\<TAB>": "<TAB>", "\^": '^' }
    1.63 - C: { "\a": BEL, "\b": BS, "\f": FF, "\n": LF, "\r": CR, "\t": TAB, "\v": VTAB }
    1.64 - Additional: { "\e": ESC, "\0": NUL, "\_": NBSP, "\N": NEL, "\L": LS, "\P": PS }
    1.65 -...

mercurial