-
Notifications
You must be signed in to change notification settings - Fork 560
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
Is this a bug in parse_stmtseq? #10693
Comments
From ben@morrow.me.ukI'm not sure if this is a bug or if I;m doing something wrong, but I ENTER { 1; } with this keyword plugin function: if (len == 5 && (strnEQ(ptr, "ENTER", len))) { lex_read_space(0); blk = parse_stmtseq(0); if (lex_read_unichar(0) != '}') { Perl_warn(aTHX_ "Got an ENTER"); *ops = newOP(OP_NULL, 0); What I'm seeing is that the swallow-the-trailing-} logic doesn't work ~/src/perl/Perl6-Blocks% perl -Mblib -MPerl6::Blocks -e'ENTER { 1; }' ~/src/perl/Perl6-Blocks% perl -Mblib -MPerl6::Blocks -e'{ ENTER { 1; } }' It doesn't seem to matter what type of block (do, sub, loop, ...) the Is this a bug, or am I doing something wrong? Ben |
From zefram@fysh.orgBen Morrow wrote:
Quite possibly. I've been thinking about the bracket handling quite a I have a plan to fix it, essentially by adding a catch-all pseudo-bracket -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From ben@morrow.me.ukQuoth zefram@fysh.org (Zefram):
I don't know if you've got some Cunning Plan here, but this fixes the Ben |
From zefram@fysh.orgBen Morrow wrote:
It does not actually fix the problem with parse_stmtseq.
Yes, that's on my agenda too. Plain parse_block is inadequate for a lot Note: I have not properly reviewed the parse_block patch. -zefram |
From zefram@fysh.orgI wrote:
Attached patch implements this. -zefram |
From zefram@fysh.orgBen Morrow wrote:
Attached is my version of parse_block(). The core of it is the same -zefram |
From @cpansproutOn Wed Oct 13 18:08:12 2010, zefram@fysh.org wrote:
Thank you. Applied as a7aaec6. |
From @cpansproutOn Fri Oct 15 05:18:52 2010, zefram@fysh.org wrote:
Thank you. Applied as e53d8f7. |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#78222 (status was 'resolved')
Searchable as RT78222$
The text was updated successfully, but these errors were encountered: