Skip Menu |

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 47545
Status: resolved
Priority: 0/
Queue: Devel-Declare

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: newline injection fail
Date: Fri, 3 Jul 2009 16:27:45 +0100
To: bug-Devel-Declare [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
The attached test script demonstrates a problem I've run into when attempting to inject code containing newlines from inside a D::D handler. The "single" test case, which doesn't involve newlines, works fine. The remaining test cases all result in syntax errors when normal parsing resumes. This only occurs when the injected newline is grammatically whitespace: a newline in an injected string literal works fine. -zefram

Message body is not shown because sender requested not to inline it.

Upon closer inspection, it looks like injecting newlines *can't* work, in the general case. toke.c hatehatehate. Documented in the next D:D release.