aboutsummaryrefslogtreecommitdiffstats
path: root/prism/prism.c
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-11-29 21:45:25 -0500
committerKevin Newton <kddnewton@gmail.com>2023-11-30 21:37:56 -0500
commit32249c2cf141158b02f51a41e0dfb36b78c424f4 (patch)
treec12bdcd02bfeea4de3586712c27959c661f86318 /prism/prism.c
parenta9162a44c59d85a56930e78cf1801558984db4a7 (diff)
downloadruby-32249c2cf141158b02f51a41e0dfb36b78c424f4.tar.gz
[ruby/prism] GB18030 encoding
https://github.com/ruby/prism/commit/ca3ab7ec89
Diffstat (limited to 'prism/prism.c')
-rw-r--r--prism/prism.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/prism/prism.c b/prism/prism.c
index e32b444619..7ede34bea0 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -6262,6 +6262,7 @@ parser_lex_magic_comment_encoding_value(pm_parser_t *parser, const uint8_t *star
case 'G': case 'g':
ENCODING1("GBK", pm_encoding_gbk);
ENCODING1("GB12345", pm_encoding_gb12345);
+ ENCODING1("GB18030", pm_encoding_gb18030);
ENCODING1("GB1988", pm_encoding_gb1988);
ENCODING1("GB2312", pm_encoding_gb2312);
break;