File: sequence.tml

package info (click to toggle)
libyaml-tiny-perl 1.64-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 556 kB
  • ctags: 80
  • sloc: perl: 1,363; makefile: 2
file content (104 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
=== Empty sequence
--- yaml
\--- []
--- perl
[ [] ]

# Simple lists
=== one_list1
--- yaml
---
- foo

--- perl
[ [ 'foo' ] ]

# Implicit document start
=== implicit_array
--- yaml
- foo

--- perl
[ [ 'foo' ] ]



=== one_list2
--- yaml
---
- foo
- bar

--- perl
[ [ 'foo', 'bar' ] ]


=== one_listundef
--- yaml
---
- ~
- bar

--- perl
[ [ undef, 'bar' ] ]


=== one_listundefs
--- noyamlpm
--- yaml
---
- ~
-
- 

--- perl
[ [ undef, undef, undef ] ]


#####################################################################
# Empty Values and Premature EOF

=== empty array keys
--- yaml
---
- foo
-
-
--- perl
[ [ 'foo', undef, undef ] ]
--- noyamlpm

#####################################################################
# Empty Quote Line

=== empty quote line
--- yaml
---
- foo
\#
- bar
--- perl
[ [ "foo", "bar" ] ]

#####################################################################
# Trailing Whitespace
#
=== trailing whitespace
--- yaml
---
abstract: Generate fractal curves
foo: ~
arr:
  # THESE LINES HAVE INTENTIONAL TRAILING WHITESPACE
  - foo    
  - ~     
  - 'bar'     
--- perl
[ {
    abstract => 'Generate fractal curves',
    foo      => undef,
    arr      => [ 'foo', undef, 'bar' ],
} ]