Skip Menu |

This queue is for tickets about the Text-EP3 CPAN distribution.

Report information
The Basics
Id: 67833
Status: new
Priority: 0/
Queue: Text-EP3

People
Owner: Nobody in particular
Requestors: bitcard [...] post2.25u.com
Cc:
AdminCc:

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



Subject: ep3_sync_lines: out-of-sync after @define etc
Hello, first, thanks a lot for maintaining this really useful module. I use it for implementing complex configuration files that allow for include/define/... directives. I found that the sync mechanism works fine for @include directives, but it does not work for @define (and probably neither for other directives). Example: Input file: vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv This is line 1 @define foo bar This is line 3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Output (with ep3_sync_lines enabled): vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv @ 1 "ep3test" 1 This is line 1 This is line 3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ So for the consumer of the preprocessed text, there is no way to tell that "This is line 3" was originally located on line 3 of the input file. As a quick fix, maybe an option would be helpful that enables inclusion of (commented) preprocessor statements in the preprocessed output. Thanks for checking! Cheers/alex