mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
b96942f6ec
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
16 lines
285 B
Plaintext
16 lines
285 B
Plaintext
# RUN: yaml-bench -canonical %s | FileCheck %s
|
|
# CHECK: !!str "literal\n"
|
|
# CHECK: !!str " folded\n"
|
|
# CHECK: !!str "keep\n\n"
|
|
# CHECK: !!str " strip"
|
|
|
|
- | # Just the style
|
|
literal
|
|
- >1 # Indentation indicator
|
|
folded
|
|
- |+ # Chomping indicator
|
|
keep
|
|
|
|
- >-1 # Both indicators
|
|
strip
|