Home | History | Annotate | Download | only in pyyaml
      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     }
     12 }
     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" } }
     19