|
189 | 189 | {"type":"NameTag","value":"literal_block"}, |
190 | 190 | {"type":"Punctuation","value":":"}, |
191 | 191 | {"type":"TextWhitespace","value":" "}, |
192 | | - {"type":"LiteralStringDoc","value":"|\n This entire block of text will be the value of the 'literal_block' key,\n with line breaks being preserved.\n\n The literal continues until de-dented, and the leading indentation is\n stripped.\n\n Any lines that are 'more-indented' keep the rest of their indentation -\n these lines will be indented by 4 spaces."}, |
193 | | - {"type":"TextWhitespace","value":"\n"}, |
| 192 | + {"type":"Punctuation","value":"|"}, |
| 193 | + {"type":"LiteralStringDoc","value":"\n This entire block of text will be the value of the 'literal_block' key,\n with line breaks being preserved.\n\n The literal continues until de-dented, and the leading indentation is\n stripped.\n\n Any lines that are 'more-indented' keep the rest of their indentation -\n these lines will be indented by 4 spaces."}, |
| 194 | + {"type":"TextWhitespace","value":" \n"}, |
194 | 195 | {"type":"NameTag","value":"folded_style"}, |
195 | 196 | {"type":"Punctuation","value":":"}, |
196 | 197 | {"type":"TextWhitespace","value":" "}, |
197 | | - {"type":"LiteralStringDoc","value":"\u003e\n This entire block of text will be the value of 'folded_style', but this\n time, all newlines will be replaced with a single space.\n\n Blank lines, like above, are converted to a newline character.\n\n 'More-indented' lines keep their newlines, too -\n this text will appear over two lines."}, |
198 | | - {"type":"TextWhitespace","value":"\n"}, |
| 198 | + {"type":"Punctuation","value":"\u003e"}, |
| 199 | + {"type":"LiteralStringDoc","value":"\n This entire block of text will be the value of 'folded_style', but this\n time, all newlines will be replaced with a single space.\n\n Blank lines, like above, are converted to a newline character.\n\n 'More-indented' lines keep their newlines, too -\n this text will appear over two lines."}, |
| 200 | + {"type":"TextWhitespace","value":" \n"}, |
199 | 201 | {"type":"NameTag","value":"literal_block_with_strip_chomping"}, |
200 | 202 | {"type":"Punctuation","value":":"}, |
201 | 203 | {"type":"TextWhitespace","value":" "}, |
202 | | - {"type":"LiteralStringDoc","value":"|-\n This entire block of text will be the value of the 'literal_block' key,\n with line breaks being preserved and the strip chomping indicator.\n\n The literal continues until de-dented, and the leading indentation is\n stripped.\n\n Any lines that are 'more-indented' keep the rest of their indentation -\n these lines will be indented by 4 spaces."}, |
203 | | - {"type":"TextWhitespace","value":"\n"}, |
| 204 | + {"type":"Punctuation","value":"|-"}, |
| 205 | + {"type":"LiteralStringDoc","value":"\n This entire block of text will be the value of the 'literal_block' key,\n with line breaks being preserved and the strip chomping indicator.\n\n The literal continues until de-dented, and the leading indentation is\n stripped.\n\n Any lines that are 'more-indented' keep the rest of their indentation -\n these lines will be indented by 4 spaces."}, |
| 206 | + {"type":"TextWhitespace","value":" \n"}, |
204 | 207 | {"type":"NameTag","value":"literal_block_with_keep_chomping"}, |
205 | 208 | {"type":"Punctuation","value":":"}, |
206 | 209 | {"type":"TextWhitespace","value":" "}, |
207 | | - {"type":"LiteralStringDoc","value":"|+\n This entire block of text will be the value of the 'literal_block' key,\n with line breaks being preserved and the keep chomping indicator.\n\n The literal continues until de-dented, and the leading indentation is\n stripped."}, |
| 210 | + {"type":"Punctuation","value":"|+"}, |
| 211 | + {"type":"LiteralStringDoc","value":"\n This entire block of text will be the value of the 'literal_block' key,\n with line breaks being preserved and the keep chomping indicator.\n\n The literal continues until de-dented, and the leading indentation is\n stripped."}, |
| 212 | + {"type":"TextWhitespace","value":" \n\n"}, |
| 213 | + {"type":"NameTag","value":"a"}, |
| 214 | + {"type":"Punctuation","value":":"}, |
| 215 | + {"type":"TextWhitespace","value":" "}, |
| 216 | + {"type":"Punctuation","value":"|"}, |
| 217 | + {"type":"LiteralStringDoc","value":"\n multiline literal\n line 2"}, |
| 218 | + {"type":"TextWhitespace","value":" \n"}, |
| 219 | + {"type":"NameTag","value":"b"}, |
| 220 | + {"type":"Punctuation","value":":"}, |
| 221 | + {"type":"TextWhitespace","value":" "}, |
| 222 | + {"type":"Punctuation","value":"\u003e"}, |
| 223 | + {"type":"LiteralStringDoc","value":"\n multiline: folded\n line 2"}, |
| 224 | + {"type":"TextWhitespace","value":" \n"}, |
| 225 | + {"type":"NameTag","value":"c"}, |
| 226 | + {"type":"Punctuation","value":":"}, |
| 227 | + {"type":"TextWhitespace","value":" "}, |
| 228 | + {"type":"Punctuation","value":"|-"}, |
| 229 | + {"type":"LiteralStringDoc","value":"\n multiline # literal strip\n line 2"}, |
| 230 | + {"type":"TextWhitespace","value":" \n"}, |
| 231 | + {"type":"NameTag","value":"d"}, |
| 232 | + {"type":"Punctuation","value":":"}, |
| 233 | + {"type":"TextWhitespace","value":" "}, |
| 234 | + {"type":"Punctuation","value":"\u003e-"}, |
| 235 | + {"type":"LiteralStringDoc","value":"\n multiline folded strip\n line 2: test\n\n # not a comment\n indented by 1"}, |
| 236 | + {"type":"TextWhitespace","value":" \n"}, |
| 237 | + {"type":"NameTag","value":"e"}, |
| 238 | + {"type":"Punctuation","value":":"}, |
| 239 | + {"type":"TextWhitespace","value":" "}, |
| 240 | + {"type":"Punctuation","value":"|+"}, |
| 241 | + {"type":"LiteralStringDoc","value":"\n multiline literal keep\n line: 2"}, |
| 242 | + {"type":"TextWhitespace","value":" \n"}, |
| 243 | + {"type":"Comment","value":"# this is a comment"}, |
208 | 244 | {"type":"TextWhitespace","value":"\n"}, |
| 245 | + {"type":"NameTag","value":"f"}, |
| 246 | + {"type":"Punctuation","value":":"}, |
| 247 | + {"type":"TextWhitespace","value":" "}, |
| 248 | + {"type":"Punctuation","value":"\u003e+"}, |
| 249 | + {"type":"LiteralStringDoc","value":"\n multiline folded keep one space\n line 2"}, |
| 250 | + {"type":"TextWhitespace","value":" \n"}, |
| 251 | + {"type":"NameTag","value":"g"}, |
| 252 | + {"type":"Punctuation","value":":"}, |
| 253 | + {"type":"TextWhitespace","value":" "}, |
| 254 | + {"type":"Literal","value":"test"}, |
| 255 | + {"type":"TextWhitespace","value":"\n\n"}, |
| 256 | + {"type":"NameTag","value":"block_scalars_with_indent"}, |
| 257 | + {"type":"Punctuation","value":":"}, |
| 258 | + {"type":"TextWhitespace","value":"\n "}, |
| 259 | + {"type":"NameTag","value":"a"}, |
| 260 | + {"type":"Punctuation","value":":"}, |
| 261 | + {"type":"TextWhitespace","value":" "}, |
| 262 | + {"type":"Punctuation","value":"|"}, |
| 263 | + {"type":"LiteralStringDoc","value":"\n multiline literal\n line 2"}, |
| 264 | + {"type":"TextWhitespace","value":" \n "}, |
| 265 | + {"type":"NameTag","value":"b"}, |
| 266 | + {"type":"Punctuation","value":":"}, |
| 267 | + {"type":"TextWhitespace","value":" "}, |
| 268 | + {"type":"Punctuation","value":"\u003e"}, |
| 269 | + {"type":"LiteralStringDoc","value":"\n multiline: folded\n line 2"}, |
| 270 | + {"type":"TextWhitespace","value":" \n "}, |
| 271 | + {"type":"NameTag","value":"c"}, |
| 272 | + {"type":"Punctuation","value":":"}, |
| 273 | + {"type":"TextWhitespace","value":" "}, |
| 274 | + {"type":"Punctuation","value":"|-"}, |
| 275 | + {"type":"LiteralStringDoc","value":"\n multiline # literal strip\n line 2 6 leading spaces"}, |
| 276 | + {"type":"TextWhitespace","value":" \n\n "}, |
| 277 | + {"type":"NameTag","value":"d"}, |
| 278 | + {"type":"Punctuation","value":":"}, |
| 279 | + {"type":"TextWhitespace","value":" "}, |
| 280 | + {"type":"Punctuation","value":"\u003e-"}, |
| 281 | + {"type":"LiteralStringDoc","value":"\n multiline folded strip\n line 2: test\n # not a comment"}, |
| 282 | + {"type":"TextWhitespace","value":" \n "}, |
| 283 | + {"type":"NameTag","value":"e"}, |
| 284 | + {"type":"Punctuation","value":":"}, |
| 285 | + {"type":"TextWhitespace","value":" "}, |
| 286 | + {"type":"Punctuation","value":"|+"}, |
| 287 | + {"type":"LiteralStringDoc","value":"\n multiline literal keep\n line: 2"}, |
| 288 | + {"type":"TextWhitespace","value":" \n "}, |
| 289 | + {"type":"Comment","value":"# this is a comment"}, |
| 290 | + {"type":"TextWhitespace","value":"\n "}, |
| 291 | + {"type":"NameTag","value":"f"}, |
| 292 | + {"type":"Punctuation","value":":"}, |
| 293 | + {"type":"TextWhitespace","value":" "}, |
| 294 | + {"type":"Punctuation","value":"\u003e+"}, |
| 295 | + {"type":"LiteralStringDoc","value":"\n multiline folded keep\n line 2"}, |
| 296 | + {"type":"TextWhitespace","value":" \n "}, |
| 297 | + {"type":"NameTag","value":"g"}, |
| 298 | + {"type":"Punctuation","value":":"}, |
| 299 | + {"type":"TextWhitespace","value":" "}, |
| 300 | + {"type":"Literal","value":"test"}, |
| 301 | + {"type":"TextWhitespace","value":"\n\n"}, |
209 | 302 | {"type":"Comment","value":"####################"}, |
210 | 303 | {"type":"TextWhitespace","value":"\n"}, |
211 | 304 | {"type":"Comment","value":"# COLLECTION TYPES #"}, |
|
248 | 341 | {"type":"TextWhitespace","value":"\n"}, |
249 | 342 | {"type":"Punctuation","value":"?"}, |
250 | 343 | {"type":"TextWhitespace","value":" "}, |
251 | | - {"type":"LiteralStringDoc","value":"|\n This is a key\n that has multiple lines"}, |
252 | | - {"type":"TextWhitespace","value":"\n"}, |
| 344 | + {"type":"Punctuation","value":"|"}, |
| 345 | + {"type":"LiteralStringDoc","value":"\n This is a key\n that has multiple lines"}, |
| 346 | + {"type":"TextWhitespace","value":" \n"}, |
253 | 347 | {"type":"Punctuation","value":":"}, |
254 | 348 | {"type":"TextWhitespace","value":" "}, |
255 | 349 | {"type":"Literal","value":"and this is its value"}, |
|
514 | 608 | {"type":"TextWhitespace","value":" "}, |
515 | 609 | {"type":"CommentPreproc","value":"!!binary"}, |
516 | 610 | {"type":"TextWhitespace","value":" "}, |
517 | | - {"type":"LiteralStringDoc","value":"|\n R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\n OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\n +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\n AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=\n\n# YAML also has a set type, which looks like this:"}, |
| 611 | + {"type":"Punctuation","value":"|"}, |
| 612 | + {"type":"LiteralStringDoc","value":"\n R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\n OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\n +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\n AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="}, |
| 613 | + {"type":"TextWhitespace","value":" \n\n"}, |
| 614 | + {"type":"Comment","value":"# YAML also has a set type, which looks like this:"}, |
518 | 615 | {"type":"TextWhitespace","value":"\n"}, |
519 | 616 | {"type":"NameTag","value":"set"}, |
520 | 617 | {"type":"Punctuation","value":":"}, |
|
0 commit comments