Skip Menu |

This queue is for tickets about the Test-Tabs CPAN distribution.

Report information
The Basics
Id: 87021
Status: open
Priority: 0/
Queue: Test-Tabs

People
Owner: perl [...] toby.ink
Requestors: victor [...] vsespb.ru
Cc:
AdminCc:

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



Subject: some issues
1. the following code produce jumping indent error: die <<"END" some text END if (some_condition()); ("if" indented with 1 tab) 2. lines with nothing except spaces and or tab does not produce errors (while trailing whitespaces do) 3. code like this if ($x) { z(); produce both "space indent" and "jumping indent" when there are 2/4/8 spaces before z(). and only "space indent" when there are 1 space before z(). it's correct if we assume that tab is 1-space wide, which is a rare thing.
From: victor [...] vsespb.ru
seems (2) is documented so ok On Thu Jul 18 21:29:27 2013, vsespb wrote: Show quoted text
> 1. the following code produce jumping indent error: > > die <<"END" > some > text > END > if (some_condition()); > > ("if" indented with 1 tab) > > 2. lines with nothing except spaces and or tab does not produce errors > (while > trailing whitespaces do) > > > 3. code like this > > if ($x) { > z(); > > produce both "space indent" and "jumping indent" when there are 2/4/8 > spaces before z(). > and only "space indent" when there are 1 space before z(). > > it's correct if we assume that tab is 1-space wide, which is a rare > thing.
On 2013-07-18T18:29:27+01:00, vsespb wrote: Show quoted text
> 1. the following code produce jumping indent error:
Heredocs are poorly supported. Show quoted text
> 3. code like this > produce both "space indent" and "jumping indent"
Yes; it probably just needs one error message for that line. The early versions just bailed out on the first error they encountered, so this wasn't a problem. Now that it reports all error in a file, I need to decide on which errors are mutually exclusive. I'll try to get around to fixing at least #3 in the next few days.