ensure qw//, q'' and '' report line on a missing terminator
authorTony Cook <tony@develop-help.com>
Tue, 6 May 2014 23:33:03 +0000 (09:33 +1000)
committerKarl Williamson <khw@cpan.org>
Mon, 12 May 2014 19:07:04 +0000 (13:07 -0600)
commit9612f77d752993595fcf7e3ddafaad50d535f00a
tree0a123fa839ba18814eec9f2df4b8dea319b21456
parentd3f8a934ef964c0f488e9c692275435d8ea2e291
ensure qw//, q'' and '' report line on a missing terminator

scan_str() only sets PL_multi_end on success, but the qw, q amd '' cases
were calling the COPLINE_SET_FROM_MULTI_END; macro before reporting
failure, overwriting the line used for reporting errors.

For the simplest case, as in the ticket and the tests, PL_multi_end is
zero, so the error is reported without a line number.
t/lib/croak/toke
toke.c