Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PPI CPAN distribution.

Report information
The Basics
Id: 28043
Status: resolved
Priority: 0/
Queue: PPI

People
Owner: Nobody in particular
Requestors: agentzh [...] yahoo.cn
Cc:
AdminCc:

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



Subject: Old Perl 4 <<\EOF heredoc syntax can't be handled properly
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 652
Download (untitled) / with headers
text/plain 652b
Hi, Alias, I've been trying to use PPI to translate the GNU make test suite (in Perl 4) to the declarative format of Ingy's Test::Base. But now I have this problem: PPI can't parse the following form of heredoc widely used in the GNU test suite: print MAKEFILE <<\EOF; # Test comment vs semicolon parsing and line continuation target: # this ; is just a comment \ @echo This is within a comment. @echo There should be no errors for this makefile. EOF The backslash before the terminator fools the PPI parser, it seems. Currently I have to patch the Perl 4 source before feeding it into PPI. Hopefully it will be fixed soon :) agentz
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-14040-1184240805-1171.28043-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 13
Support added


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.