| Age | Commit message (Collapse) | Author |
|
[Backport #21187]
|
|
|
|
https://github.com/ruby/prism/commit/9686897290
Notes:
Merged: https://github.com/ruby/ruby/pull/12358
|
|
Partially: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/1ffd693f9b
|
|
Partially: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/a78da01ef6
|
|
Partially: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/2f473b0713
|
|
Partially: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/7be164e0b7
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/f1f8776973
|
|
Partially: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/3c01cc7c77
|
|
Partially: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/649ef29c29
|
|
```
❯ ruby --parser=prism --dump=parsetree -e "foo in *1"
ruby: -e:1: syntax error found (SyntaxError)
> 1 | foo in *1
| ^ unexpected integer, expecting end-of-input
2 |
```
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/b8f40988ab
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/396c6d4340
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/27f13fabc6
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/1388ca389e
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/b1c2f323f9
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/8353be1dfe
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/9c0ef71449
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/480897eccf
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/75d1bde6cc
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/d1570f2e06
|
|
Partially fixes: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/145ae8f993
|
|
Its `exception` field was renamed to `reference` in #1204 but the
documentation was not updated.
https://github.com/ruby/prism/commit/a477607ba2
|
|
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
|
|
expressions
https://github.com/ruby/prism/commit/68de31919e
|
|
AlternationPatternNode
https://github.com/ruby/prism/commit/6953daebde
|
|
https://github.com/ruby/prism/commit/976a3cd0a5
|
|
https://github.com/ruby/prism/commit/b624e09cc6
|
|
https://github.com/ruby/prism/commit/a474017bbe
|
|
* For Loader.java, do not deserialize the AST if there are errors, so then Java nodes only have non-error types for fields.
https://github.com/ruby/prism/commit/ae78e3c605
|
|
https://github.com/ruby/prism/commit/ebd2889bee
|
|
https://github.com/ruby/prism/commit/8a3fa9f46e
|
|
https://github.com/ruby/prism/commit/369b2c1304
|
|
https://github.com/ruby/prism/commit/fa65b66237
|
|
https://github.com/ruby/prism/commit/21cb9b78ae
|
|
Rename some fields that do not quite make sense.
* CaseMatchNode#consequent -> CaseMatchNode#else_clause
* CaseNode#consequent -> CaseNode#else_clause
* IfNode#consequent -> IfNode#subsequent
* RescueNode#consequent -> RescueNode#subsequent
* UnlessNode#consequent -> UnlessNode#else_clause
Notes:
Merged: https://github.com/ruby/ruby/pull/11480
|
|
https://github.com/ruby/prism/commit/d43333539e
|
|
If we have a splat, add a flag for it named `contains_splat`.
https://github.com/ruby/prism/commit/5be97a75c8
|
|
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
|
|
https://github.com/ruby/prism/commit/5d5bf92be8
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/11163
|
|
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/9f12a56fd6
|
|
https://github.com/ruby/prism/commit/035890a839
|
|
https://github.com/ruby/prism/commit/b6a97a43c2
|
|
https://github.com/ruby/prism/commit/b817cd25c5
|