llvm-mirror/test/YAMLParser/spec-09-20.test
Alex Lorenz caa59f0135 YAML: Implement block scalar parsing.
This commit implements the parsing of YAML block scalars.
Some code existed for it before, but it couldn't parse block
scalars.

This commit adds a new yaml node type to represent the block
scalar values. 

This commit also deletes the 'spec-09-27' and 'spec-09-28' tests
as they are identical to the test file 'spec-09-26'.

This commit introduces 3 new utility functions to the YAML scanner
class: `skip_s_space`, `advanceWhile` and `consumeLineBreakIfPresent`.

Reviewers: Duncan P. N. Exon Smith

Differential Revision: http://reviews.llvm.org/D9503

llvm-svn: 237314
2015-05-13 23:10:51 +00:00

18 lines
240 B
Plaintext

# RUN: yaml-bench -canonical %s | FileCheck %s
# CHECK: !!str "detected\n"
# CHECK: !!str "\n\n# detected\n"
# CHECK: !!str " explicit\n"
# CHECK: !!str "\t\ndetected\n"
- |
detected
- >
# detected
- |1
explicit
- >
detected