[tapx-dev] Trailing backslash in TAP lines

Ovid publiustemp-perlqa3 at yahoo.com
Tue Jul 3 10:10:26 BST 2007


----- Original Message ----
From: Steffen Schwigon <schwigon at webit.de>

> Should I correct my test output or should TAP::Parser handle lines
> with trailing backslash differently?

I think that TAP::Parser's behavior is incorrect.  The problem will be found in the TAP::Parser::Grammar, specifically this line, I think, which is supposed to allow a hash mark if it's escaped:

  my $description = qr/.*?(?!\\(?:\\\\)*)#?/;

I'm at work, so I can't look at this right now, but if anyone else wants to take a gander at it, feel free.  I've never quite like the regexes I've cobbled together for TAP parsing since there are so many edge cases.

Cheers,
Ovid

-- 
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/






More information about the tapx-dev mailing list