From b62e466fb5a0e520143ff421403497e7aa752c8e Mon Sep 17 00:00:00 2001 From: duerst Date: Tue, 27 Nov 2018 03:56:19 +0000 Subject: use 'Regional_Indicator' script property instead of fixed constants git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regparse.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'regparse.c') diff --git a/regparse.c b/regparse.c index e4cf13796e..f190055b03 100644 --- a/regparse.c +++ b/regparse.c @@ -6263,10 +6263,7 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env) /* 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} */ - np1 = node_new_cclass(); - if (IS_NULL(np1)) goto err; - cc = NCCLASS(np1); - r = add_code_range(&(cc->mbuf), env, 0x1F1E6, 0x1F1FF); + r = create_property_node(&np1, env, "Regional_Indicator"); if (r != 0) goto err; tmp = node_new_quantifier(2, 2, 0); -- cgit v1.2.3