<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/prism/fixtures/patterns.txt, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/prism] Fix parser translator when splatting in pattern matching pin</title>
<updated>2025-04-02T20:51:54+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-03-30T11:28:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=334c261cc9ee125c4c4bfc65dec2e571af8944a2'/>
<id>334c261cc9ee125c4c4bfc65dec2e571af8944a2</id>
<content type='text'>
Because it ends up treating it as a local variable, and `a.x`
is not a valid local variable name.

I'm not big on pattern matching, but conceptually it makes sense to me
to treat anything inside ^() to not be
pattern matching syntax?

https://github.com/ruby/prism/commit/80dbd85c45
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because it ends up treating it as a local variable, and `a.x`
is not a valid local variable name.

I'm not big on pattern matching, but conceptually it makes sense to me
to treat anything inside ^() to not be
pattern matching syntax?

https://github.com/ruby/prism/commit/80dbd85c45
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix parser translator when pinning hash with string keys</title>
<updated>2025-03-30T17:24:05+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-03-30T10:48:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d7e46543b5fc34487dbc2c784412af015dbe67f4'/>
<id>d7e46543b5fc34487dbc2c784412af015dbe67f4</id>
<content type='text'>
`StringNode` and `SymbolNode` don't have the same shape
(`content` vs `value`) and that wasn't handled.

I believe the logic for the common case can be reused.
I simply left the special handling for implicit nodes in pattern matching
and fall through otherwise.

NOTE: patterns.txt is not actually tested at the moment,
because it contains syntax that `parser` mistakenly rejects.
But I checked manually that this doesn't introduce other failures.
https://github.com/whitequark/parser/pull/1060

https://github.com/ruby/prism/commit/55adfaa895
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`StringNode` and `SymbolNode` don't have the same shape
(`content` vs `value`) and that wasn't handled.

I believe the logic for the common case can be reused.
I simply left the special handling for implicit nodes in pattern matching
and fall through otherwise.

NOTE: patterns.txt is not actually tested at the moment,
because it contains syntax that `parser` mistakenly rejects.
But I checked manually that this doesn't introduce other failures.
https://github.com/whitequark/parser/pull/1060

https://github.com/ruby/prism/commit/55adfaa895
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] [Bug #20785] Allow `, and` and `, or`  after patterns</title>
<updated>2024-12-16T15:51:22+00:00</updated>
<author>
<name>ydah</name>
<email>t.yudai92@gmail.com</email>
</author>
<published>2024-12-04T06:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f6e0a037aa21bd90830cecc397c16918890d76a2'/>
<id>f6e0a037aa21bd90830cecc397c16918890d76a2</id>
<content type='text'>
Partially: https://bugs.ruby-lang.org/issues/20785

https://github.com/ruby/prism/commit/71c9102d02
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Partially: https://bugs.ruby-lang.org/issues/20785

https://github.com/ruby/prism/commit/71c9102d02
</pre>
</div>
</content>
</entry>
<entry>
<title>Sync Prism with latest main branch</title>
<updated>2024-09-30T15:36:29+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-09-30T14:51:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6c9b5c16157ae7c9bb551e573e8fb60d2422eaf6'/>
<id>6c9b5c16157ae7c9bb551e573e8fb60d2422eaf6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Reconfigure error tests</title>
<updated>2024-07-11T18:25:54+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-02T16:23:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=678dd769e560db9cebff41218e3413e6688aaf12'/>
<id>678dd769e560db9cebff41218e3413e6688aaf12</id>
<content type='text'>
https://github.com/ruby/prism/commit/fb7e1ebb7f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/fb7e1ebb7f
</pre>
</div>
</content>
</entry>
<entry>
<title>Sync to latest prism</title>
<updated>2024-02-05T16:07:07+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-02-05T15:38:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0b5be2f9e97e0618f76b9a861eaf9c40a2e7fd6f'/>
<id>0b5be2f9e97e0618f76b9a861eaf9c40a2e7fd6f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix multiple assigns with newlines</title>
<updated>2024-01-26T18:35:54+00:00</updated>
<author>
<name>Haldun Bayhantopcu</name>
<email>haldun@github.com</email>
</author>
<published>2024-01-23T23:57:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7d356b8f0e5be81075a30e779c872eeed9049150'/>
<id>7d356b8f0e5be81075a30e779c872eeed9049150</id>
<content type='text'>
https://github.com/ruby/prism/commit/b4ba41bdcd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/b4ba41bdcd
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix parsing pinned local variable pattern for numbered parameter</title>
<updated>2024-01-03T17:20:33+00:00</updated>
<author>
<name>TSUYUSATO Kitsune</name>
<email>make.just.on@gmail.com</email>
</author>
<published>2024-01-03T04:30:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a25329e0dab2a3ada395b1e4e0254a15cd498de2'/>
<id>a25329e0dab2a3ada395b1e4e0254a15cd498de2</id>
<content type='text'>
Fix https://github.com/ruby/prism/pull/2094

The part of `parse_variable_call` for variables was split into a new
function `parse_variable` and used it.

https://github.com/ruby/prism/commit/4c5fd1a746
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix https://github.com/ruby/prism/pull/2094

The part of `parse_variable_call` for variables was split into a new
function `parse_variable` and used it.

https://github.com/ruby/prism/commit/4c5fd1a746
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Revert all of commits after Prism 0.19.0 release"</title>
<updated>2023-12-25T12:12:49+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-12-25T08:34:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fa251d60aa9c6f271885a467a26249b29f291cd3'/>
<id>fa251d60aa9c6f271885a467a26249b29f291cd3</id>
<content type='text'>
This reverts commit d242e8416e99eaee4465e2681210ae8b7ecd6d34.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit d242e8416e99eaee4465e2681210ae8b7ecd6d34.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert all of commits after Prism 0.19.0 release</title>
<updated>2023-12-16T03:08:51+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-12-16T03:05:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d242e8416e99eaee4465e2681210ae8b7ecd6d34'/>
<id>d242e8416e99eaee4465e2681210ae8b7ecd6d34</id>
<content type='text'>
  We should bundle released version of Prism for Ruby 3.3.0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  We should bundle released version of Prism for Ruby 3.3.0
</pre>
</div>
</content>
</entry>
</feed>
