source: pyyaml/trunk/tests/data/sloppy-indentation.data @ 117

Revision 117, 340 bytes checked in by xi, 8 years ago (diff)

Loose indentation rules for the following cases:

  • In the flow context, indentation level is not checked.
  • For quoted scalars, indentation level is not checked.
  • Flow scalars are not required to have at least 1 space indentation. Zero indentation is acceptable.
Line 
1---
2in the block context:
3    indentation should be kept: {
4    but in the flow context: [
5it may be violated]
6}
7---
8the parser does not require scalars
9to be indented with at least one space
10...
11---
12"the parser does not require scalars
13to be indented with at least one space"
14---
15foo:
16    bar: 'quoted scalars
17may not adhere indentation'
Note: See TracBrowser for help on using the repository browser.