Warning, /frameworks/syntax-highlighting/autotests/input/test.yaml is written in an unsupported language. File is not indexed.

0001 # YAML test
0002 
0003 # Comment
0004 
0005 key: value
0006 another key: Another value
0007 boolean: true
0008 null_value: null
0009 single quotes: 'have ''one'' escape pattern'
0010 double quotes: "have many: \", \0, \t, \u263A, \x0d\x0a == \r\n, and more."
0011 
0012 decimal: +12345
0013 negative: -1_4
0014 zero: 0
0015 octal: 0o14
0016 another octal: 014_2
0017 hexadecimal: 0x_Ca2
0018 float: 1.23015e+3
0019 exponential: 12.3015e+02
0020 fixed: 12__30.1_5
0021 sexagesimal: 19_0:20:30.15
0022 sexagesimal-inline: [123:45:12, 123:45:32.234_32, +12__3:23]
0023 infinity: !!float .inf
0024 not a number: !!float .NaN
0025 datetime: 2001-12-15T02:59:43.1Z
0026 date: 2002-12-14
0027 
0028 json_map: {"key": "value"}
0029 json_seq: [3, 2, -.inf, "value"]
0030 another key: {key: [+0x12a, , !!hello: bye, 1, off, {a: [{b: ''}]}]}
0031 
0032 ? !!python/tuple [5, 7]
0033 : Fifty Seven
0034 
0035 ? set2:
0036   item1: null
0037   item2: null
0038 
0039 foo: &foo
0040   <<: *base
0041   age: 10
0042 
0043 !!seq [
0044   !!str "Block scalar\n",
0045   !!map {
0046     ? &B1 !!str "foo"
0047     : !!str "bar",
0048     ? !!str "baz"
0049     : *B1,
0050   },
0051   !!map {
0052      !!str "sun" : !!str "yellow",
0053   },
0054 ]
0055 
0056 !!map {
0057   !!str "Booleans": !!seq [
0058     !!bool "true", !!bool "false"
0059   ],
0060   !!str "Invalid": !!seq [
0061     # Rejected by the schema
0062     True, Null, 0o7, 0x3A, +12.3,
0063   ],
0064 }
0065 
0066 --- !clarkevans.com,2002/graph/^shape
0067 - !^circle
0068   center: &ORIGIN {x: 73, y: 129}
0069   radius: 7
0070 
0071 ? - Dog
0072   - Cat
0073 : [ 2018-08-11, 2016-01-01 ]
0074 
0075 # Literal/Folded Style
0076 
0077 --- |
0078   \//||\/||
0079   // ||  ||__
0080 
0081 --- >
0082   Mark McGwire's
0083   year was crippled
0084   by a knee injury.
0085  
0086 ? |
0087   This is a key
0088   that has multiple lines
0089 : |
0090   and this is it's literal value
0091 
0092 # Capture the indentation of the Key. The "-" and "?" operators
0093 # are considered as part of the indentation:
0094 key1:
0095    key2: !!hello |
0096     literal: " text" # [ ]
0097 
0098     # literal { }
0099    key3: |+
0100     literal: 'text'
0101    no-literal: " text"
0102     #comment
0103 
0104 ?  key: |-
0105     literal: "text"
0106    no-literal: "text"
0107 - item1
0108     - item2
0109         - - - key: >-
0110                "literal text" # [ ]
0111 
0112                'literal block'
0113               no-literal: 12
0114 
0115 ? - - - - ? key: |
0116              literal: [ ]
0117             no-literal: [ ]
0118 
0119 # Capture the indentation of the literal/folded operator:
0120 |-
0121  literal: "text"
0122 
0123 !!binary |
0124  R0lGODlhDAAMAIQAAP//9/X
0125  17unp5WZmZgAAAOfn515eXv
0126  Pz7Y6OjuDg4J+fn5OTk6enp
0127  56enmleECcgggoBADs=
0128 
0129 key1:
0130   key2:
0131    |
0132    literal: "text"
0133   key3:
0134    !!str |
0135    literal: "text"
0136    #literal
0137 
0138 # Capture the indentation of the operators "-" or "?":
0139 ? - - - !!hello |+
0140        literal: "sdfsd" # [ ]
0141       no-literal: "sdfsd" # [ ]
0142 
0143 - - - - >-
0144        literal: "text"
0145        #literal
0146       no-literal: "text" 
0147 
0148 # This implementation of literal blocks has a limitation:
0149 # it only supports 6 dashes at most.
0150 - - - - - - - key: |
0151                literal? "dfsf"
0152 
0153 # Only comments after spaces & strings in multiline attributes (bug #407060)
0154 reg_list:
0155 - reg: ?#XPath //div[@class="product_item cf"][@id] ))(?sx)
0156     id="product(?P<code>[^"]+)"
0157     .+?<h4><a\s+[^>]+>(?P<title>[^<]+)</a></h4>