| Age | Commit message (Collapse) | Author |
|
[Backport #21187]
|
|
|
|
https://github.com/ruby/prism/commit/023e894b74
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/11753
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/11741
|
|
https://github.com/ruby/prism/commit/fd58d6a9ea
|
|
https://github.com/ruby/prism/commit/976a3cd0a5
|
|
https://github.com/ruby/prism/commit/988ac82187
|
|
https://github.com/ruby/prism/commit/b624e09cc6
|
|
https://github.com/ruby/prism/commit/a474017bbe
|
|
When we encounter an invalid unicode escape within a regular
expression, we now pass that error on to Onigmo as if it didn't
exist in the parser (which matches the upstream parser's behavior).
We do this because there are tests that specify that you are
allowed to have invalid Unicode escapes if they are within the
context of a regular expression comment for a regular expression
in extended mode. That looks like:
/# \u /x
Note that this _only_ applies to Unicode escapes (as opposed to
applying to hex or meta/control escapes as well). Importantly it
also only applies if the regular expression is terminated. An
unterminated regular expression will still get error handling done
in the parser. That would look like:
/# \u
that would result in the same error handling we have today.
https://github.com/ruby/prism/commit/fb98034806
|
|
https://github.com/ruby/prism/commit/9f1f7d08bd
|
|
PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set
* Note that we could shift the flags by 2 on serialize & deserialize
but it does not seems worth it as it does not save serialized size
in any significant amount, i.e. average was 0.799 before #2924.
* $ bundle exec rake serialized_size:topgems
Before:
Total sizes for top 100 gems:
total source size: 90207647
total serialized size: 69477115
total serialized/total source: 0.770
Stats of ratio serialized/source per file:
average: 0.844
median: 0.825
1st quartile: 0.597
3rd quartile: 1.064
min - max: 0.078 - 3.792
After:
Total sizes for top 100 gems:
total source size: 90207647
total serialized size: 66150209
total serialized/total source: 0.733
Stats of ratio serialized/source per file:
average: 0.800
median: 0.779
1st quartile: 0.568
3rd quartile: 1.007
min - max: 0.076 - 3.675
https://github.com/ruby/prism/commit/e012072f70
|
|
PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set
* $ bundle exec rake serialized_size:topgems
Before:
Total sizes for top 100 gems:
total source size: 90207647
total serialized size: 86284647
total serialized/total source: 0.957
Stats of ratio serialized/source per file:
average: 0.952
median: 0.937
1st quartile: 0.669
3rd quartile: 1.206
min - max: 0.080 - 4.065
After:
Total sizes for top 100 gems:
total source size: 90207647
total serialized size: 69477115
total serialized/total source: 0.770
Stats of ratio serialized/source per file:
average: 0.844
median: 0.825
1st quartile: 0.597
3rd quartile: 1.064
min - max: 0.078 - 3.792
https://github.com/ruby/prism/commit/cf90fe5759
|
|
https://github.com/ruby/prism/commit/5d5bf92be8
|
|
prefixed values
This commit prevents the following unary operators from being accepted
as the value prefix of a block's optional parameter:
- `+`
- `-`
- `~`
- `!`
For example, `f { |a = +b| }` will now raise a syntax error.
https://github.com/ruby/prism/commit/3024bee60c
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
|
|
https://github.com/ruby/prism/commit/bf16ade7f9
|
|
https://github.com/ruby/prism/commit/9f12a56fd6
|
|
https://github.com/ruby/prism/commit/035890a839
|
|
Follow up https://github.com/ruby/prism/commit/1a2626be275d
https://github.com/ruby/prism/commit/8174aac929
|
|
ruby/ruby measures test coverage of C code, but the `#line` directive
generated by prism points to a file that does not exist, so coverage is
not taken properly.
This changeset specifies the location of the source files as a relative
path in terms of ruby/ruby repo.
https://github.com/ruby/prism/commit/1a2626be27
|
|
https://github.com/ruby/prism/commit/f59295938b
|
|
https://github.com/ruby/prism/commit/73669b59f6
|
|
https://github.com/ruby/prism/commit/fe34a77df2
|
|
https://github.com/ruby/prism/commit/e0e8bba8be
|
|
Blocks and keywords are allowed in regular index.
Also update NEWS to make this more clear.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
https://github.com/ruby/prism/commit/283938ed1f
|
|
https://github.com/ruby/prism/commit/54316fd8a0
|
|
https://github.com/ruby/prism/commit/53bbcfe513
|
|
https://github.com/ruby/prism/commit/c386ba6d48
|
|
https://github.com/ruby/prism/commit/6258c3695f
|
|
https://github.com/ruby/prism/commit/ab43b3ab66
|
|
https://github.com/ruby/prism/commit/0ef5658dcc
|
|
https://github.com/ruby/prism/commit/8d4c5c2bca
|
|
https://github.com/ruby/prism/commit/178d4f66fd
|
|
https://github.com/ruby/prism/commit/863197629c
|
|
https://github.com/ruby/prism/commit/dd532ded95
|
|
https://github.com/ruby/prism/commit/826657232e
|
|
https://github.com/ruby/prism/commit/3af1acd5da
|
|
https://github.com/ruby/prism/commit/623a0bb995
|
|
https://github.com/ruby/prism/commit/b20e37e82e
|
|
https://github.com/ruby/prism/commit/c1b07ec11b
|
|
https://github.com/ruby/prism/commit/60dbf60f48
|
|
https://github.com/ruby/prism/commit/bdd509c6ac
|
|
hash patterns
https://github.com/ruby/prism/commit/31f0201bae
|
|
https://github.com/ruby/prism/commit/8c984b6922
|
|
https://github.com/ruby/prism/commit/e893bc2230
|
|
https://github.com/ruby/prism/commit/1c3b48fedb
|
|
https://github.com/ruby/prism/commit/80dbe035ba
|
|
https://github.com/ruby/prism/commit/b1917adac7
|