Changeset View
Changeset View
Standalone View
Standalone View
autotests/reference/test.yaml.ref
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | |||||
63 | <List> </List><Operator>],</Operator><br/> | 63 | <List> </List><Operator>],</Operator><br/> | ||
64 | <Operator>}</Operator><br/> | 64 | <Operator>}</Operator><br/> | ||
65 | <Normal Text></Normal Text><br/> | 65 | <Normal Text></Normal Text><br/> | ||
66 | <Document Header>--- !clarkevans.com,2002/graph/^shape</Document Header><br/> | 66 | <Document Header>--- !clarkevans.com,2002/graph/^shape</Document Header><br/> | ||
67 | <Operator>-</Operator><List> </List><Normal Text>!^circle</Normal Text><br/> | 67 | <Operator>-</Operator><List> </List><Normal Text>!^circle</Normal Text><br/> | ||
68 | <Normal Text> </Normal Text><Key>center:</Key><Attribute> </Attribute><Alias>&ORIGIN</Alias><Attribute> </Attribute><Operator>{</Operator><Key>x:</Key><Attribute> </Attribute><Integer>73</Integer><Operator>,</Operator><Hash> </Hash><Key>y:</Key><Attribute> </Attribute><Integer>129</Integer><Operator>}</Operator><br/> | 68 | <Normal Text> </Normal Text><Key>center:</Key><Attribute> </Attribute><Alias>&ORIGIN</Alias><Attribute> </Attribute><Operator>{</Operator><Key>x:</Key><Attribute> </Attribute><Integer>73</Integer><Operator>,</Operator><Hash> </Hash><Key>y:</Key><Attribute> </Attribute><Integer>129</Integer><Operator>}</Operator><br/> | ||
69 | <Normal Text> </Normal Text><Key>radius:</Key><Attribute> </Attribute><Integer>7</Integer><br/> | 69 | <Normal Text> </Normal Text><Key>radius:</Key><Attribute> </Attribute><Integer>7</Integer><br/> | ||
70 | <Normal Text></Normal Text><br/> | 70 | <Normal Text></Normal Text><br/> | ||
71 | <Operator>?</Operator><Normal Text> |</Normal Text><br/> | | |||
72 | <Normal Text> This is a key</Normal Text><br/> | | |||
73 | <Normal Text> that has multiple lines</Normal Text><br/> | | |||
74 | <Key>:</Key><Attribute> and this is its value</Attribute><br/> | | |||
75 | <Normal Text></Normal Text><br/> | | |||
76 | <Operator>?</Operator><Normal Text> </Normal Text><Operator>-</Operator><List> </List><Normal Text>Dog</Normal Text><br/> | 71 | <Operator>?</Operator><Normal Text> </Normal Text><Operator>-</Operator><List> </List><Normal Text>Dog</Normal Text><br/> | ||
77 | <Normal Text> </Normal Text><Operator>-</Operator><List> </List><Normal Text>Cat</Normal Text><br/> | 72 | <Normal Text> </Normal Text><Operator>-</Operator><List> </List><Normal Text>Cat</Normal Text><br/> | ||
78 | <Key>:</Key><Attribute> </Attribute><Operator>[</Operator><List> 2018-08-11</List><Operator>,</Operator><List> 2016-01-01 </List><Operator>]</Operator><br/> | 73 | <Key>:</Key><Attribute> </Attribute><Operator>[</Operator><List> 2018-08-11</List><Operator>,</Operator><List> 2016-01-01 </List><Operator>]</Operator><br/> | ||
74 | <Normal Text></Normal Text><br/> | ||||
75 | <Comment># Literal/Folded Style</Comment><br/> | ||||
76 | <Normal Text></Normal Text><br/> | ||||
77 | <Document Header>--- </Document Header><Literal/Folded Operator>|</Literal/Folded Operator><br/> | ||||
78 | <Literal/Folded Block> \//||\/||</Literal/Folded Block><br/> | ||||
79 | <Literal/Folded Block> // || ||__</Literal/Folded Block><br/> | ||||
80 | <Normal Text></Normal Text><br/> | ||||
81 | <Document Header>--- </Document Header><Literal/Folded Operator>></Literal/Folded Operator><br/> | ||||
82 | <Literal/Folded Block> Mark McGwire's</Literal/Folded Block><br/> | ||||
83 | <Literal/Folded Block> year was crippled</Literal/Folded Block><br/> | ||||
84 | <Literal/Folded Block> by a knee injury.</Literal/Folded Block><br/> | ||||
85 | <Literal/Folded Block> </Literal/Folded Block><br/> | ||||
86 | <Operator>? </Operator><Literal/Folded Operator>|</Literal/Folded Operator><br/> | ||||
87 | <Literal/Folded Block> This is a key</Literal/Folded Block><br/> | ||||
88 | <Literal/Folded Block> that has multiple lines</Literal/Folded Block><br/> | ||||
89 | <Key>:</Key><Normal Text> </Normal Text><Literal/Folded Operator>|</Literal/Folded Operator><br/> | ||||
90 | <Literal/Folded Block> and this is it's literal value</Literal/Folded Block><br/> | ||||
91 | <Normal Text></Normal Text><br/> | ||||
92 | <Comment># Capture the indentation of the Key. The "-" and "?" operators</Comment><br/> | ||||
93 | <Comment># are considered as part of the indentation:</Comment><br/> | ||||
94 | <Key>key1:</Key><br/> | ||||
95 | <Key> key2:</Key><Normal Text> </Normal Text><Data Types>!!hello</Data Types><Attribute> </Attribute><Literal/Folded Operator>|</Literal/Folded Operator><br/> | ||||
96 | <Literal/Folded Block> literal: " text" # [ ]</Literal/Folded Block><br/> | ||||
97 | <Normal Text></Normal Text><br/> | ||||
98 | <Literal/Folded Block> # literal { }</Literal/Folded Block><br/> | ||||
99 | <Key> key3:</Key><Normal Text> </Normal Text><Literal/Folded Operator>|+</Literal/Folded Operator><br/> | ||||
100 | <Literal/Folded Block> literal: 'text'</Literal/Folded Block><br/> | ||||
101 | <Normal Text> </Normal Text><Key>no-literal:</Key><Attribute> </Attribute><String>" text"</String><br/> | ||||
102 | <Normal Text> </Normal Text><Comment>#comment</Comment><br/> | ||||
103 | <Normal Text></Normal Text><br/> | ||||
104 | <Operator>? </Operator><Key>key:</Key><Attribute> </Attribute><Literal/Folded Operator>|-</Literal/Folded Operator><br/> | ||||
105 | <Literal/Folded Block> literal: "text"</Literal/Folded Block><br/> | ||||
106 | <Normal Text> </Normal Text><Key>no-literal:</Key><Attribute> </Attribute><String>"text"</String><br/> | ||||
107 | <Operator>-</Operator><List> </List><Normal Text>item1</Normal Text><br/> | ||||
108 | <Normal Text> </Normal Text><Operator>-</Operator><List> </List><Normal Text>item2</Normal Text><br/> | ||||
109 | <Operator> - - - </Operator><Key>key:</Key><Attribute> </Attribute><Literal/Folded Operator>>-</Literal/Folded Operator><br/> | ||||
110 | <Literal/Folded Block> "literal text" # [ ]</Literal/Folded Block><br/> | ||||
111 | <Normal Text></Normal Text><br/> | ||||
112 | <Literal/Folded Block> 'literal block'</Literal/Folded Block><br/> | ||||
113 | <Normal Text> </Normal Text><Key>no-literal:</Key><Attribute> </Attribute><Integer>12</Integer><br/> | ||||
114 | <Normal Text></Normal Text><br/> | ||||
115 | <Operator>? - - - - ? </Operator><Key>key:</Key><Attribute> </Attribute><Literal/Folded Operator>|</Literal/Folded Operator><br/> | ||||
116 | <Literal/Folded Block> literal: [ ]</Literal/Folded Block><br/> | ||||
117 | <Normal Text> </Normal Text><Key>no-literal:</Key><Attribute> </Attribute><Operator>[</Operator><List> </List><Operator>]</Operator><br/> | ||||
118 | <Normal Text></Normal Text><br/> | ||||
119 | <Comment># Capture the indentation of the literal/folded operator:</Comment><br/> | ||||
120 | <Literal/Folded Operator>|-</Literal/Folded Operator><br/> | ||||
121 | <Literal/Folded Block> literal: "text"</Literal/Folded Block><br/> | ||||
122 | <Normal Text></Normal Text><br/> | ||||
123 | <Data Types>!!binary</Data Types><Normal Text> </Normal Text><Literal/Folded Operator>|</Literal/Folded Operator><br/> | ||||
124 | <Literal/Folded Block> R0lGODlhDAAMAIQAAP//9/X</Literal/Folded Block><br/> | ||||
125 | <Literal/Folded Block> 17unp5WZmZgAAAOfn515eXv</Literal/Folded Block><br/> | ||||
126 | <Literal/Folded Block> Pz7Y6OjuDg4J+fn5OTk6enp</Literal/Folded Block><br/> | ||||
127 | <Literal/Folded Block> 56enmleECcgggoBADs=</Literal/Folded Block><br/> | ||||
128 | <Normal Text></Normal Text><br/> | ||||
129 | <Key>key1:</Key><br/> | ||||
130 | <Normal Text> </Normal Text><Key>key2:</Key><br/> | ||||
131 | <Literal/Folded Operator> |</Literal/Folded Operator><br/> | ||||
132 | <Literal/Folded Block> literal: "text"</Literal/Folded Block><br/> | ||||
133 | <Normal Text> </Normal Text><Key>key3:</Key><br/> | ||||
134 | <Data Types> !!str</Data Types><Normal Text> </Normal Text><Literal/Folded Operator>|</Literal/Folded Operator><br/> | ||||
135 | <Literal/Folded Block> literal: "text"</Literal/Folded Block><br/> | ||||
136 | <Literal/Folded Block> #literal</Literal/Folded Block><br/> | ||||
137 | <Normal Text></Normal Text><br/> | ||||
138 | <Comment># Capture the indentation of the operators "-" or "?":</Comment><br/> | ||||
139 | <Operator>? - - - </Operator><Data Types>!!hello</Data Types><Normal Text> </Normal Text><Literal/Folded Operator>|+</Literal/Folded Operator><br/> | ||||
140 | <Literal/Folded Block> literal: "sdfsd" # [ ]</Literal/Folded Block><br/> | ||||
141 | <Normal Text> </Normal Text><Key>no-literal:</Key><Attribute> </Attribute><String>"sdfsd"</String><Normal Text> </Normal Text><Comment># [ ]</Comment><br/> | ||||
142 | <Normal Text></Normal Text><br/> | ||||
143 | <Operator>- - - - </Operator><Literal/Folded Operator>>-</Literal/Folded Operator><br/> | ||||
144 | <Literal/Folded Block> literal: "text"</Literal/Folded Block><br/> | ||||
145 | <Literal/Folded Block> #literal</Literal/Folded Block><br/> | ||||
146 | <Normal Text> </Normal Text><Key>no-literal:</Key><Attribute> </Attribute><String>"text"</String><Normal Text> </Normal Text><br/> | ||||
147 | <Normal Text></Normal Text><br/> | ||||
148 | <Comment># This implementation of literal blocks has a limitation:</Comment><br/> | ||||
149 | <Comment># it only supports 6 dashes at most.</Comment><br/> | ||||
150 | <Operator>-</Operator><List> </List><Operator>-</Operator><List> </List><Operator>-</Operator><List> </List><Operator>-</Operator><List> </List><Operator>-</Operator><List> </List><Operator>-</Operator><List> </List><Operator>-</Operator><List> </List><Key>key:</Key><Attribute> |</Attribute><br/> | ||||
151 | <Normal Text> literal? </Normal Text><String>"dfsf"</String><br/> |