<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/prism/errors_test.rb, branch v4.0.3</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] Clean up test excludes</title>
<updated>2025-12-02T16:20:43+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-12-02T13:41:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=17bcd71e4218994bfb6c2d398fa784ccd74d2f2c'/>
<id>17bcd71e4218994bfb6c2d398fa784ccd74d2f2c</id>
<content type='text'>
Mostly not having to list version-specific excludes when testing against ripper/parse.y

Also don't test new syntax additions against the parser gems. The version support
for them may (or may not) be expanded but we shouldn't bother while the ruby version
hasn't even released yet.
(ruby_parser translation is not versioned, so let as is for now)

I also removed excludes that have since been implemented by parse.y

https://github.com/ruby/prism/commit/e5a0221c37
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mostly not having to list version-specific excludes when testing against ripper/parse.y

Also don't test new syntax additions against the parser gems. The version support
for them may (or may not) be expanded but we shouldn't bother while the ruby version
hasn't even released yet.
(ruby_parser translation is not versioned, so let as is for now)

I also removed excludes that have since been implemented by parse.y

https://github.com/ruby/prism/commit/e5a0221c37
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Add tests to `regexp_encoding_option_mismatch`</title>
<updated>2025-11-20T20:09:19+00:00</updated>
<author>
<name>Thiago Araujo</name>
<email>thd.araujo@gmail.com</email>
</author>
<published>2025-11-20T04:05:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ba47c2f03305be10b7c28f7ff6783a533b57ef15'/>
<id>ba47c2f03305be10b7c28f7ff6783a533b57ef15</id>
<content type='text'>
related to #2667

https://github.com/ruby/prism/commit/44f075bae4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
related to #2667

https://github.com/ruby/prism/commit/44f075bae4
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Make error and snapshot tests multi-version aware</title>
<updated>2025-10-22T14:50:11+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-10-17T14:19:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6047eada20d39bbe80976c31277ec7916118f78a'/>
<id>6047eada20d39bbe80976c31277ec7916118f78a</id>
<content type='text'>
This one has been on my mind for a while now.

Currently, there are only tests against the latest syntax version.

This changes the snapshot structure as follows:
* Snapshots at their current location are tested against all syntax versions
* Snapshots inside a version folder like "3.3" are tested against all versions starting from that version
* Snapshots inside a version folder like "3.3-4.2" are tested against all versions in the given range.

This makes sure that as new syntax is added, older versions still work as expected.
I also added a few tests for now valid syntax that should be invalid in older versions (and the other way around as well)

These tests run really fast. So even though it does 3x the work for these, I am still able to run the whole test suite in just 11 seconds.

https://github.com/ruby/prism/commit/5191b1aa68
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This one has been on my mind for a while now.

Currently, there are only tests against the latest syntax version.

This changes the snapshot structure as follows:
* Snapshots at their current location are tested against all syntax versions
* Snapshots inside a version folder like "3.3" are tested against all versions starting from that version
* Snapshots inside a version folder like "3.3-4.2" are tested against all versions in the given range.

This makes sure that as new syntax is added, older versions still work as expected.
I also added a few tests for now valid syntax that should be invalid in older versions (and the other way around as well)

These tests run really fast. So even though it does 3x the work for these, I am still able to run the whole test suite in just 11 seconds.

https://github.com/ruby/prism/commit/5191b1aa68
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] [Bug #17398] Allow `private def hello = puts "Hello"`</title>
<updated>2025-09-12T19:00:01+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-09-02T11:29:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f2dbc4ec82a0e103ac1e3f64f5983540cdc75fd3'/>
<id>f2dbc4ec82a0e103ac1e3f64f5983540cdc75fd3</id>
<content type='text'>
This was a limitation of parse.y that prism intentionally replicated.

https://github.com/ruby/prism/commit/8fd12d594c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was a limitation of parse.y that prism intentionally replicated.

https://github.com/ruby/prism/commit/8fd12d594c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] No writing to numbered parameters</title>
<updated>2025-02-13T20:04:02+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2025-02-13T19:17:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=127325a4bad409ee5da91084fac768934a8fd9e3'/>
<id>127325a4bad409ee5da91084fac768934a8fd9e3</id>
<content type='text'>
Fixes [Bug #21117]

https://github.com/ruby/prism/commit/19d4bab5a0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes [Bug #21117]

https://github.com/ruby/prism/commit/19d4bab5a0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Blocks &amp; kwargs are not valid in index assignments</title>
<updated>2024-12-16T15:00:27+00:00</updated>
<author>
<name>Matt Valentine-House</name>
<email>matt@eightbitraptor.com</email>
</author>
<published>2024-12-16T11:26:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=39d0ebb6e84a68ef6b5b43f33fb32f36428be548'/>
<id>39d0ebb6e84a68ef6b5b43f33fb32f36428be548</id>
<content type='text'>
Ruby feature: https://bugs.ruby-lang.org/issues/20952

https://github.com/ruby/prism/commit/e612df5f36
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ruby feature: https://bugs.ruby-lang.org/issues/20952

https://github.com/ruby/prism/commit/e612df5f36
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix error messages for unterminated ( and {</title>
<updated>2024-12-05T18:42:01+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2024-12-02T21:05:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6877c38866b4213f5aa476223d21a4f4b5364247'/>
<id>6877c38866b4213f5aa476223d21a4f4b5364247</id>
<content type='text'>
If we hit an EOF token, and the character before the EOF is a newline,
we should make EOF token start at the previous newline.  That way any
errors reported will occur on that line.

For example "foo(\n" should report an error on line 1 even though the
EOF technically occurs on line 2.

[Bug #20918]
https://bugs.ruby-lang.org/issues/20918

https://github.com/ruby/prism/commit/60bc43de8e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we hit an EOF token, and the character before the EOF is a newline,
we should make EOF token start at the previous newline.  That way any
errors reported will occur on that line.

For example "foo(\n" should report an error on line 1 even though the
EOF technically occurs on line 2.

[Bug #20918]
https://bugs.ruby-lang.org/issues/20918

https://github.com/ruby/prism/commit/60bc43de8e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Sync from ruby/ruby</title>
<updated>2024-07-25T18:59:10+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-25T17:17:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=24770c30f87fff758e94cc4d1293cdb8c64ce8f4'/>
<id>24770c30f87fff758e94cc4d1293cdb8c64ce8f4</id>
<content type='text'>
https://github.com/ruby/prism/commit/280517c325
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/280517c325
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Various cleanup for initializers and typechecks</title>
<updated>2024-07-11T18:25:54+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-03T15:23:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=aa473489a2ff5e5ed6d3536466e6108539c97a8b'/>
<id>aa473489a2ff5e5ed6d3536466e6108539c97a8b</id>
<content type='text'>
https://github.com/ruby/prism/commit/86cf82794a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/86cf82794a
</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>
</feed>
