This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Shorten a $variable name
authorKarl Williamson <public@khwilliamson.com>
Wed, 16 May 2012 01:18:30 +0000 (19:18 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sat, 2 Jun 2012 14:29:21 +0000 (08:29 -0600)
lib/unicore/mktables

index 7d3a797..00c1259 100644 (file)
@@ -13004,7 +13004,7 @@ sub compile_perl() {
     # It is regular XID_Start plus the underscore, but all characters must be
     # Word characters as well
     my $XID_Start = property_ref('XID_Start');
-    my $perl_xid_start = $perl->add_match_table('_Perl_IDStart',
+    my $perl_xids = $perl->add_match_table('_Perl_IDStart',
                                                 Perl_Extension => 1,
                                                 Fate => $INTERNAL_ONLY,
                                                 Initialize => ord('_')
@@ -13012,7 +13012,7 @@ sub compile_perl() {
     if (defined $XID_Start
         || defined ($XID_Start = property_ref('ID_Start')))
     {
-        $perl_xid_start += $XID_Start->table('Y');
+        $perl_xids += $XID_Start->table('Y');
     }
     else {
         # For Unicode versions that don't have the property, construct our own
@@ -13020,11 +13020,11 @@ sub compile_perl() {
         # numbers (Nl), minus Pattern_Syntax and Pattern_White_Space code
         # points, plus stability extensions.  PatSyn and PatWS are not defined
         # in releases that don't have XIDS defined, so are irrelevant.
-        $perl_xid_start += $gc->table('Letter');
+        $perl_xids += $gc->table('Letter');
         my $nl = $gc->table('Letter_Number');
-        $perl_xid_start += $nl if defined $nl;
+        $perl_xids += $nl if defined $nl;
     }
-    $perl_xid_start &= $Word;
+    $perl_xids &= $Word;
 
     my $gcb = property_ref('Grapheme_Cluster_Break');
     # These are used in Unicode's definition of \X