ruby-changes:53830
From: duerst <ko1@a...>
Date: Wed, 28 Nov 2018 06:50:33 +0900 (JST)
Subject: [ruby-changes:53830] duerst:r66048 (trunk): fix order of subexpressions for Hangul
duerst 2018-11-28 06:50:27 +0900 (Wed, 28 Nov 2018) New Revision: 66048 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66048 Log: fix order of subexpressions for Hangul Modified files: trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 66047) +++ regparse.c (revision 66048) @@ -5925,13 +5925,13 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L5925 { Node* seq[5]; - r = quantify_property_node(seq+0, env, "Grapheme_Cluster_Break=T", 0, REPEAT_INFINITE); + r = quantify_property_node(seq+0, env, "Grapheme_Cluster_Break=L", 0, REPEAT_INFINITE); if (r != 0) goto err; - r = quantify_property_node(seq+1, env, "Grapheme_Cluster_Break=V", 0, REPEAT_INFINITE); + r = create_property_node(seq+1, env, "Grapheme_Cluster_Break=LV"); if (r != 0) goto err; - r = create_property_node(seq+2, env, "Grapheme_Cluster_Break=LV"); + r = quantify_property_node(seq+2, env, "Grapheme_Cluster_Break=V", 0, REPEAT_INFINITE); if (r != 0) goto err; - r = quantify_property_node(seq+3, env, "Grapheme_Cluster_Break=L", 0, REPEAT_INFINITE); + r = quantify_property_node(seq+3, env, "Grapheme_Cluster_Break=T", 0, REPEAT_INFINITE); if (r != 0) goto err; seq[4] = NULL_NODE; @@ -5948,11 +5948,11 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L5948 { Node* seq[4]; - r = quantify_property_node(seq+0, env, "Grapheme_Cluster_Break=T", 0, REPEAT_INFINITE); + r = quantify_property_node(seq+0, env, "Grapheme_Cluster_Break=L", 0, REPEAT_INFINITE); if (r != 0) goto err; r = quantify_property_node(seq+1, env, "Grapheme_Cluster_Break=V", 1, REPEAT_INFINITE); if (r != 0) goto err; - r = quantify_property_node(seq+2, env, "Grapheme_Cluster_Break=L", 0, REPEAT_INFINITE); + r = quantify_property_node(seq+2, env, "Grapheme_Cluster_Break=T", 0, REPEAT_INFINITE); if (r != 0) goto err; seq[3] = NULL_NODE; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/