Handle /[#]/ and /[(?#]/ with code blocks
authorDavid Mitchell <davem@iabyn.com>
Wed, 31 Jul 2013 21:41:17 +0000 (22:41 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 31 Jul 2013 21:41:17 +0000 (22:41 +0100)
commitc30fc27b4df65a43710b25dd1d2a57d78ee2fe33
treef7802818f8a3511cf762d75c229b5c0cc4846e15
parent985afbc1d44bafd633410ac8e8443fd3563ecf65
Handle /[#]/ and /[(?#]/ with code blocks

This is a regression in 5.18.0.

In something like /[#](?{})/x, the perl toker incorrectly sees the '#' as a
comment and skips the code block without parsing it.
t/re/re_tests
toke.c