From b96942f6ec1c91a4531e7ecf845abdba0e5285f6 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Wed, 13 May 2015 23:10:51 +0000 Subject: 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237314 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/YAMLParser/spec-09-24.test | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/YAMLParser/spec-09-24.test') diff --git a/test/YAMLParser/spec-09-24.test b/test/YAMLParser/spec-09-24.test index f08eae6a80e..9cf51413855 100644 --- a/test/YAMLParser/spec-09-24.test +++ b/test/YAMLParser/spec-09-24.test @@ -1,8 +1,13 @@ -# RUN: yaml-bench -canonical %s +# RUN: yaml-bench -canonical %s | FileCheck %s +# CHECK: ? !!str "strip" +# CHECK: : !!str "" +# CHECK: ? !!str "clip" +# CHECK: : !!str "" +# CHECK: ? !!str "keep" +# CHECK: : !!str "\n" strip: >- clip: > keep: |+ - -- cgit v1.2.3