[svn:parrot] r40335 - trunk/lib/Parrot/Pmc2c
petdance at svn.parrot.org
petdance at svn.parrot.org
Thu Jul 30 06:11:09 UTC 2009
Author: petdance
Date: Thu Jul 30 06:11:09 2009
New Revision: 40335
URL: https://trac.parrot.org/parrot/changeset/40335
Log:
set qr delimiters to // so vim color coding does not freak out.
Modified:
trunk/lib/Parrot/Pmc2c/PCCMETHOD.pm
Modified: trunk/lib/Parrot/Pmc2c/PCCMETHOD.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PCCMETHOD.pm Thu Jul 30 05:53:52 2009 (r40334)
+++ trunk/lib/Parrot/Pmc2c/PCCMETHOD.pm Thu Jul 30 06:11:09 2009 (r40335)
@@ -188,12 +188,12 @@
my $regs_used = [];
my $qty_returns = 0;
- my $signature_re = qr{
+ my $signature_re = qr/
(RETURN #method name
\s* #optional whitespace
\( ([^\(]*) \) #returns ( stuff ... )
;?) #optional semicolon
- }sx;
+ /sx;
croak "return not allowed in pccmethods, use RETURN instead $body"
if $body and $body =~ m/\breturn\b.*?;\z/s;
More information about the parrot-commits
mailing list