Permalink
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (61 sloc) 1.03 KB
=== Spec Example 7.10. Plain Characters
--- from: http://www.yaml.org/spec/1.2/spec.html#id2789510
--- tags: spec flow sequence scalar
--- in-yaml(<)
# Outside flow collection:
- ::vector
- ": - ()"
- Up, up, and away!
- -123
- http://example.com/foo#bar
# Inside flow collection:
- [ ::vector,
": - ()",
"Up, up and away!",
-123,
http://example.com/foo#bar ]
--- in-json
[
"::vector",
": - ()",
"Up, up, and away!",
-123,
"http://example.com/foo#bar",
[
"::vector",
": - ()",
"Up, up and away!",
-123,
"http://example.com/foo#bar"
]
]
--- out-yaml
- ::vector
- ": - ()"
- Up, up, and away!
- -123
- http://example.com/foo#bar
- - ::vector
- ": - ()"
- "Up, up and away!"
- -123
- http://example.com/foo#bar
--- test-event
+STR
+DOC
+SEQ
=VAL :::vector
=VAL ": - ()
=VAL :Up, up, and away!
=VAL :-123
=VAL :http://example.com/foo#bar
+SEQ
=VAL :::vector
=VAL ": - ()
=VAL "Up, up and away!
=VAL :-123
=VAL :http://example.com/foo#bar
-SEQ
-SEQ
-DOC
-STR