scalars.yaml 714 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- normal scalar, but
  over several lines
- |
  literal scalar - so we can draw ASCII:
  
         -   -
        |  -   |
         ------
- >
  and a folded scalar... so we
  can just keep writing various
  things. And if we want to keep indentation:
  
    we just indent a little
    see, this stays indented
- >-
  Here's a folded scalar
  that gets chomped.
- |-
  And here's a literal scalar
  that gets chomped.
- >2
       Here's a folded scalar
24
25
26
27
28
29
30
31
32
33
34
35
  that starts with some indentation.
- ::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 ]