2
test: Comments at the end of a line
4
Comments at the end of a line
7
ex2: "foo # bar" # comment
8
ex3: 'foo # bar' # comment
11
array('ex1' => 'foo # bar', 'ex2' => 'foo # bar', 'ex3' => 'foo # bar', 'ex4' => 'foo')
13
test: Comments in the middle
15
Comments in the middle
24
array('foo' => array('bar' => 'foo'))
26
test: Comments on a hash line
28
Comments on a hash line
33
array('foo' => array('foo' => 'bar'))
35
test: 'Value starting with a #'
37
'Value starting with a #'
41
array('foo' => '#bar')
43
test: Document starting with a comment and a separator
45
Commenting before document start is allowed
53
test: Comment containing a colon on a hash line
55
Comment containing a colon on a scalar line
56
yaml: 'foo # comment: this is also part of the comment'
60
test: 'Hash key containing a #'
62
'Hash key containing a #'
65
array('foo#bar' => 'baz')
67
test: 'Hash key ending with a space and a #'
69
'Hash key ending with a space and a #'
73
array('foo #' => 'baz')