Skip to content

Commit b83302e

Browse files
committed
Refresh the Unicode tables from prism 1.9.0
The three code point tables in this file are a copy of the ones in prism's `src/encoding.c`, and had fallen behind: the version they came from predates the uppercase letters that Unicode has added since. Refreshed against prism 1.9.0, which is the table Ruby 4.0 carries. Only the three lengths and the values change. Nothing in rbs reads them today -- `alpha_char`, `alnum_char` and `isupper_char` have no callers, because the lexer asks the encoding for nothing beyond the width of a character. They are part of the vendored encoding layer all the same, and a vendored copy that has drifted from its source is worse than no copy: the next reader has no way to tell which Unicode version it is looking at.
1 parent d46cf40 commit b83302e

1 file changed

Lines changed: 195 additions & 49 deletions

File tree

0 commit comments

Comments
 (0)