| Age | Commit message (Collapse) | Author |
|
Fixes https://github.com/ruby/prism/pull/3784.
https://github.com/ruby/prism/commit/3fe862534b
|
|
The unicode version has been updated upstream, which means new
codepoints mapped to alpha/alnum/isupper flags. We need to update
our tables to match.
I'm purposefully not adding a version check here, since that is
such a large amount of code. It's possible that we could include
different tables depending on a macro (like UNICODE_VERSION) or
something to that effect, but it's such a minimal impact on the
running of the actual parser that I don't think it's necessary.
https://github.com/ruby/prism/commit/78925fe5b6
|
|
https://github.com/ruby/prism/commit/592128de4d
|
|
https://github.com/ruby/prism/commit/ab7f261354
|
|
Check that multibyte characters are valid using pm_strpbrk. We need
to add a couple of codepaths to ensure all encodings are covered.
Importantly this doesn't check regular expressions, because
apparently you're allowed to have invalid multibyte characters
inside regular expression comment groups/extended mode.
https://github.com/ruby/prism/commit/2857d3e1b5
|
|
https://github.com/ruby/prism/commit/06d3747c5b
|
|
This assert used to trip in the included test:
```
./miniruby --parser=prism -e ' "%W"\u" '
```
https://github.com/ruby/prism/commit/8c0f84db4f
|
|
char_is_identifier_start() and char_is_identifier_utf8()
* This is also faster than calling pm_encoding_utf_8_alpha_char/pm_encoding_utf_8_alnum_char
as those compute the character width and do extra checks.
https://github.com/ruby/prism/commit/4cb276ac4c
|
|
https://github.com/ruby/prism/commit/6749146c0e
|
|
https://github.com/ruby/prism/commit/18e6df0d4f
|
|
https://github.com/ruby/prism/commit/e838eaff6f
|
|
https://github.com/ruby/prism/commit/b9510aed40
|
|
https://github.com/ruby/prism/commit/f4b7beadc9
|
|
https://github.com/ruby/prism/commit/c52c7f37ea
|
|
https://github.com/ruby/prism/commit/9461384b0c
|
|
|