Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some issues #2

Open
tobyink opened this issue Jan 9, 2021 · 2 comments
Open

some issues #2

tobyink opened this issue Jan 9, 2021 · 2 comments

Comments

@tobyink
Copy link
Owner

tobyink commented Jan 9, 2021

Migrated from rt.cpan.org #87021 (status was 'open')

Requestors:

From victor@vsespb.ru on 2013-07-18 17:29:27
:

  1. the following code produce jumping indent error:

die <<"END"
some
text
END
if (some_condition());

("if" indented with 1 tab)

  1. lines with nothing except spaces and or tab does not produce errors (while
    trailing whitespaces do)

  2. 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.

@tobyink
Copy link
Owner Author

tobyink commented Jan 9, 2021

From victor@vsespb.ru on 2013-07-18 17:57:31
:

seems (2) is documented so ok

On Thu Jul 18 21:29:27 2013, vsespb wrote:

  1. the following code produce jumping indent error:

die <<"END"
some
text
END
if (some_condition());

("if" indented with 1 tab)

  1. lines with nothing except spaces and or tab does not produce errors
    (while
    trailing whitespaces do)

  2. 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.

@tobyink
Copy link
Owner Author

tobyink commented Jan 9, 2021

From perl@toby.ink on 2013-07-18 18:26:49
:

On 2013-07-18T18:29:27+01:00, vsespb wrote:

  1. the following code produce jumping indent error:

Heredocs are poorly supported.

  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant