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

Quote adverbs ignored after :to #3292

Closed
p6rt opened this issue Dec 14, 2013 · 4 comments
Closed

Quote adverbs ignored after :to #3292

p6rt opened this issue Dec 14, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Dec 14, 2013

Migrated from rt.perl.org#120788 (status was 'resolved')

Searchable as RT120788$

@p6rt
Copy link
Author

p6rt commented Dec 14, 2013

From @softmoth

[23​:41​:02] $ perl6 --version
This is perl6 version 2013.11-35-g0bf3de5 built on JVM
[23​:41​:07] $ cat t.pl6
print q :heredoc :c "EOF";
  2+3={2+3}
  EOF
[23​:41​:11] $ perl6 t.pl6
2+3={2+3}

Adverbs before the :heredoc (or :to) take effect. Adverbs after :to
are lost. I expect the order of adverbs to not be important.

@p6rt
Copy link
Author

p6rt commented Nov 12, 2015

From @jnthn

On Fri Dec 13 22​:45​:16 2013, softmoth wrote​:

[23​:41​:02] $ perl6 --version
This is perl6 version 2013.11-35-g0bf3de5 built on JVM
[23​:41​:07] $ cat t.pl6
print q :heredoc :c "EOF";
2+3={2+3}
EOF
[23​:41​:11] $ perl6 t.pl6
2+3={2+3}

Adverbs before the :heredoc (or :to) take effect. Adverbs after :to
are lost. I expect the order of adverbs to not be important.

There actually weren't lost, but were rather uselessly applied to the language used to parse there heredoc terminator. Now they apply to the heredoc language, as expected, so the example in this ticket now outputs​:

2+3=5

Test for this, plus also :w after :heredoc, in S02-literals/quoting.t.

/jnthn

@p6rt
Copy link
Author

p6rt commented Nov 12, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Nov 12, 2015
@p6rt
Copy link
Author

p6rt commented Nov 12, 2015

@jnthn - Status changed from 'open' to 'resolved'

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