File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ grammar Pod6::Grammar {
157
157
}
158
158
159
159
token table_row {
160
- \h * <table_cell > ** [ \h\h + ] \n
160
+ \h * <table_cell > ** [ \h + '|' \h + || \h + '+' \h + || \h \h+ ] \n
161
161
}
162
162
163
163
token table_cell {
Original file line number Diff line number Diff line change @@ -49,4 +49,19 @@ is $r.content[1][1], '10';
49
49
is $ r . content[2 ][1 ], ' 33' ;
50
50
is $ r . content[3 ][1 ], ' 57' ;
51
51
52
+ $ x = q [
53
+ =for table
54
+ mouse | mice
55
+ horse | horses
56
+ elephant | elephants
57
+ ] ;
58
+
59
+ $ r = Pod6::parse($ x );
60
+ is $ r . content[0 ][0 ], ' mouse' ;
61
+ is $ r . content[0 ][1 ], ' mice' ;
62
+ is $ r . content[1 ][0 ], ' horse' ;
63
+ is $ r . content[1 ][1 ], ' horses' ;
64
+ is $ r . content[2 ][0 ], ' elephant' ;
65
+ is $ r . content[2 ][1 ], ' elephants' ;
66
+
52
67
done ;
You can’t perform that action at this time.
0 commit comments