File tree Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# check comments
4
4
5
- say (' 1..8 ' );
5
+ say (' 1..16 ' );
6
6
7
7
# Comment preceding
8
8
say (" ok 1" );
@@ -54,4 +54,44 @@ say("ok 7");
54
54
55
55
say (" ok 8" );
56
56
57
+ = begin comment
58
+ this is indented pod with an unaligned =end comment
59
+ = end comment
60
+ say (" ok 9" );
57
61
62
+
63
+ = begin comment
64
+ this is another indented pod with an unaligned =end comment
65
+ = end comment
66
+ say (" ok 10" );
67
+
68
+ # Parsing breaks down here: no errors are found
69
+ # with the second =end and how it's interpreted.
70
+ # seems to be a pod object of unknown type.
71
+ # the second =begin seems to be ignored or
72
+ # considered part of the comment.
73
+ # may need a :nested config key
74
+ = begin comment
75
+ this is indented pod with an unaligned =end comment
76
+ = begin comment
77
+ this is a nested comment
78
+ = end comment
79
+ say("ok 11");
80
+
81
+ say("ok 12");
82
+ # the following doesn't trigger a panic:
83
+ = end comment
84
+
85
+ say (" ok 13" );
86
+
87
+
88
+ = begin comment
89
+ this is indented pod with an unaligned =end comment
90
+ = begin comment
91
+ this is a nested comment
92
+ = end comment
93
+ say("ok 14");
94
+ say("ok 15");
95
+ # the following triggers a panic if uncommented:
96
+ #=end comment
97
+ say("ok 16");
You can’t perform that action at this time.
0 commit comments