Skip to content

Commit e579e8e

Browse files
committed
Test empty captures in p5regex.
Includes a failing test for when one is at the start, which breaks scanning.
1 parent 9c348a6 commit e579e8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/p5regex/rx_captures

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
(a.)..(..) zzzabcdefzzz <mob: abcdef @ 3> basic $0
33
(a.)..(..) zzzabcdefzzz <mob[0]: ab @ 3> basic $1
44
(a.)..(..) zzzabcdefzzz <mob[1]: ef @ 7> basic $2
5+
d()ef zzzabcdefzzz y empty capture
6+
# todo :pge<bug>
7+
()ef zzzabcdefzzz y empty capture at start
58
(a(b(c))(d)) abcd y nested match
69
(a(b(c))(d)) abcd <mob: abcd @ 0> nested match
710
(a(b(c))(d)) abcd <mob[0]: abcd @ 0> nested match

0 commit comments

Comments
 (0)