| Age | Commit message (Collapse) | Author |
|
https://github.com/ruby/prism/commit/73669b59f6
|
|
https://github.com/ruby/prism/commit/cd66c478de
|
|
https://github.com/ruby/prism/commit/f7faedfb3f
|
|
https://github.com/ruby/prism/commit/fe34a77df2
|
|
https://github.com/ruby/prism/commit/f09db18e46
|
|
|
|
|
|
https://bugs.ruby-lang.org/issues/20478
|
|
https://github.com/ruby/prism/commit/90d570aa50
|
|
|
|
https://github.com/ruby/prism/commit/78d9f20e9d
|
|
https://github.com/ruby/prism/commit/11e0e204ce
|
|
https://github.com/ruby/prism/commit/27e7685dd4
|
|
https://github.com/ruby/prism/commit/953601e3c0
|
|
https://github.com/ruby/prism/commit/2e02fa3b80
|
|
https://github.com/ruby/prism/commit/e0e8bba8be
|
|
https://github.com/ruby/prism/commit/b03afbe857
|
|
https://github.com/ruby/prism/commit/c19b0fa185
|
|
https://github.com/ruby/prism/commit/36c6851c85
|
|
https://github.com/ruby/prism/commit/29d80e486e
|
|
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/pull/2845)
* Add document
* fix
* fix fmt
* fix fmt
* Revert "fix fmt"
This reverts commit https://github.com/ruby/prism/commit/b23a05a94148.
* add potition
* fix fmt
* reposition
* fix indent
* fix comment
* fix indent
https://github.com/ruby/prism/commit/0dd4c1bba1
|
|
https://github.com/ruby/prism/commit/63b596df07
|
|
https://github.com/ruby/prism/commit/d13a05252d
|
|
https://github.com/ruby/prism/commit/8f6da451b4
|
|
https://github.com/ruby/prism/commit/b850794db9
|
|
https://github.com/ruby/prism/commit/53b2866487
|
|
https://github.com/ruby/prism/commit/5050dfbe70
|
|
https://github.com/ruby/prism/commit/75fabf7081
|
|
https://github.com/ruby/prism/commit/283938ed1f
|
|
https://github.com/ruby/prism/commit/14e397598b
|
|
https://github.com/ruby/prism/commit/486c71c426
|
|
https://github.com/ruby/prism/commit/54316fd8a0
|
|
In some cases Prism was either not raising an appropriate `void value
expression` error, or raising that error when the syntax is considered
valid.
To fix this Prism needs to check whether we have other clauses on the
`begin` rather than just returning `cast->statements`.
* If the `cast->statements` are null and the `cast->ensure_clause` is
not null, set the code to `cast->ensure_clause`
* else
* If there is a `cast->rescue_clause`
* Check if `cast->statements` are null and `cast->rescue_clause->statements`
are null, and return `NULL`
* Check if there is an `else_clause`, and set the node to
`cast->else_clause`.
* Otherwise return `cast->statements` as the node
* return `cast->statements` as the node
See tests for test cases. Note I took these directly from CRuby so if
desired I can delete them since the test will now pass. This only fixes
one test in the `test_parse` file, taking failures from 14 to 13.
This fixes `TestParse#test_void_value_in_rhs` and is related to
issue #2791.
https://github.com/ruby/prism/commit/398152b412
|
|
https://github.com/ruby/prism/commit/0ae908b6ee
|
|
https://github.com/ruby/prism/commit/737f2c2117
|
|
|
|
https://github.com/ruby/prism/commit/53bbcfe513
|
|
This eliminates the subnode on RationalNode and replaces it with two
integer fields, which represent the ratio for the rational. It also
reduces those two integers if they both fit into 32 bits.
Importantly, this PR does not implement bignum reduction. That's something
I'd like to consider for the future, but it's simple enough for now to
leave them unreduced, which makes it more useful than it used to be.
https://github.com/ruby/prism/commit/86e06c7068
|
|
https://github.com/ruby/prism/commit/c386ba6d48
|
|
https://github.com/ruby/prism/commit/8a7afa6988
|
|
https://github.com/ruby/prism/commit/1dbbbedf55
|
|
|
|
https://github.com/ruby/prism/commit/dddaf67c34
|
|
https://github.com/ruby/prism/commit/6258c3695f
|
|
https://github.com/ruby/prism/commit/31ef81fd06
|
|
https://github.com/ruby/prism/commit/50e188b168
|
|
https://github.com/ruby/prism/commit/72518f5716
|
|
https://github.com/ruby/prism/commit/ab43b3ab66
|
|
https://github.com/ruby/prism/commit/2a43b4f55c
|