Add more unit tests for error messages.
[pyyaml/python3.git] / tests / data / sloppy-indentation.canonical
blob438bc04ada68052f7ff0d960cd23b374951e9c2f
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" : !!str "quoted scalars may not adhere indentation" } }