diff options
-rw-r--r-- | regparse.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -5839,8 +5839,10 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env) OnigCodePoint sb_out = (ONIGENC_MBC_MINLEN(env->enc) > 1) ? 0x00 : 0x80; if (propname2ctype(env, "Grapheme_Cluster_Break=Extend") < 0) goto err; - /* main comment: The order of the code is mostly in reverse of the order - * the various expressions appear in the grammar */ /* Unicode 10.0.0 */ /* CRLF * | Prepend* @@ -6109,7 +6111,7 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env) seq[3] = NULL_NODE; R_ERR(create_sequence_node(&list2, seq)); - } tmp = onig_node_new_alt(list2, alt); if (IS_NULL(tmp)) goto err; @@ -6117,8 +6119,8 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env) list2 = NULL; /* Unicode 10.0.0/11.0.0 */ - /* this is actually Regional_Indicator+ in Unicode 10.0.0, - * but it is Regional_Indicator{2} in Unicode 11.0.0, so no need to fix */ /* RI-Sequence := Regional_Indicator{2} */ R_ERR(quantify_property_node(&np1, env, "Regional_Indicator", '2')); |