# New Ticket Created by Chris Dolan # Please include the string: [perl #60186] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60186 >
As of parrot rev 32120, PGE only supports the old S05 closure syntax that had double curlies like so /foo {{ say "matched foo" }}/ The current S05 says this is legal: /foo { say "matched foo" }/ This was discussed on perl6.users at: http://www.nntp.perl.org/group/perl.perl6.users/2008/10/msg826.html The attached patch allows one to use either single or double curlies (or triple, etc, actually). I added disambiguation for the "{*}" token which is now a special case of "{...}". Perhaps that latter bit was over-engineering, but I don't grok the optable yet well enough to understand how it disambiguates on its own. In the future, I think we should consider deprecating the extraneous curlies, at least for PIR closures.
pge-single-bracket-closure.patch
Description: Binary data