Uh oh!
There was an error while loading. Please reload this page.
Support Ruby 3.1 hash shorthand syntax - #55
Closed
presidentbeef wants to merge 1 commit into
Closed
Conversation
like `{ x: }`zenspider
commented
Apr 15, 2022
Member
I'm adding a positive test case cribbed off your negative test case: deftest_hash_shorthandinn=s(:hash,s(:lit,:k),nil)out='{ k: }'assert_parseinn,outend |
zenspider
commented
Apr 15, 2022
Member
It is... Most of the tests come in via pt_testcase.rb from sexp_processor. I have not bothered porting new tests from ruby_parser to pt_testcase.rb and that's caused some slippage. 2.7 is probably covered pretty well (tho, maybe not |
zenspider
commented
Apr 15, 2022
Member
Added! Thanks! |
presidentbeef
commented
Apr 15, 2022
Author
Huh, I have no idea where my positive test went. I know I wrote it and I wrote it before I wrote what ended up in this PR. Sorry about that! Thanks! |
zenspider
commented
Apr 15, 2022
via email
Member
No worries! … On Apr 15, 2022, at 13:03, Justin Collins ***@***.***> wrote:
Huh, I have no idea where my positive test went. I know I wrote it and I wrote it before I wrote what ended up in this PR. Sorry about that!
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state. |
zenspider
commented
Apr 15, 2022
via email
Member
What do you think about going back to the old version but provide a defensive one via en env var or something? … On Apr 15, 2022, at 13:03, Justin Collins ***@***.***> wrote:
Huh, I have no idea where my positive test went. I know I wrote it and I wrote it before I wrote what ended up in this PR. Sorry about that!
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state. |
presidentbeef
commented
Apr 16, 2022
Author
@zenspider I think that last comment was for seattlerb/sexp_processor#30? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
like
{ x: }(I guess at this point ruby2ruby is pretty far behind on Ruby syntax...)