Loose indentation rules for the following cases:
[pyyaml/python3.git] / tests / data / sloppy-indentation.canonical
blob0d312cc18f60afe995f5569bc1afa0eb5614d734
1 %YAML 1.1
2 ---
3 !!map { 
4     ? !!str "in the block context"
5     : !!map {
6         ? !!str "indentation should be kept"
7         : !!map {
8             ? !!str "but in the flow context"
9             : !!seq [ !!str "it may be violated" ]
10         }
11     }
13 --- !!str
14 "the parser does not require scalars to be indented with at least one space"
15 --- !!str
16 "the parser does not require scalars to be indented with at least one space"
17 --- !!map
18 { ? !!str "foo": { ? !!str "bar" : "quoted scalars may not adhere indentation" } }