<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/prism, branch master</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 translation when escaped newline with trailing content</title>
<updated>2026-05-26T15:48:53+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2026-05-26T15:31:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=01a19896e700148df61b91479a4761c124ff05ff'/>
<id>01a19896e700148df61b91479a4761c124ff05ff</id>
<content type='text'>
https://github.com/ruby/prism/commit/81e07f3cdb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/81e07f3cdb
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Don't replicate unary method bug in parser translator</title>
<updated>2026-05-26T14:29:38+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-05-26T09:54:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=986a7ed4fab7175a8ec55b799992b8ac24f4f011'/>
<id>986a7ed4fab7175a8ec55b799992b8ac24f4f011</id>
<content type='text'>
Closes https://github.com/ruby/prism/issues/4112

Also see https://github.com/ruby/prism/issues/2501, for which this was done.
The expectation in rubocop is incorrect (produces code with semantic difference), so the test should be updated instead.

In any way, it should also have applied to `+`, where the same happens

https://github.com/ruby/prism/commit/1f8cae2a75
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes https://github.com/ruby/prism/issues/4112

Also see https://github.com/ruby/prism/issues/2501, for which this was done.
The expectation in rubocop is incorrect (produces code with semantic difference), so the test should be updated instead.

In any way, it should also have applied to `+`, where the same happens

https://github.com/ruby/prism/commit/1f8cae2a75
</pre>
</div>
</content>
</entry>
<entry>
<title>Reject `END { next } ` as well</title>
<updated>2026-05-15T10:58:27+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-05-13T11:52:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=11de89ca1a94899535875ea594962c79713615b1'/>
<id>11de89ca1a94899535875ea594962c79713615b1</id>
<content type='text'>
Followup for https://bugs.ruby-lang.org/issues/20409
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Followup for https://bugs.ruby-lang.org/issues/20409
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Take the strings encoding as the initial encoding in the ripper translator</title>
<updated>2026-05-08T20:12:59+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-05-08T19:10:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=07ae044b0dd4968b4ef6dd072cc0a2a851d79902'/>
<id>07ae044b0dd4968b4ef6dd072cc0a2a851d79902</id>
<content type='text'>
When no magic encoding comment is present, it does not default to utf-8,
and takes the encoding of the string that contains the source code instead.
Most of the time that will be utf-8, but not always.

https://github.com/ruby/prism/commit/1a273db780
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When no magic encoding comment is present, it does not default to utf-8,
and takes the encoding of the string that contains the source code instead.
Most of the time that will be utf-8, but not always.

https://github.com/ruby/prism/commit/1a273db780
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Respect `encoding` option in `Prism.lex` and friends</title>
<updated>2026-05-08T20:12:59+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-05-08T19:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dc90c26a103ad62df73464cc1896edbcc90bd0c7'/>
<id>dc90c26a103ad62df73464cc1896edbcc90bd0c7</id>
<content type='text'>
utf-8 is the default for source files but can be overwritten via options

https://github.com/ruby/prism/commit/355f451528
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
utf-8 is the default for source files but can be overwritten via options

https://github.com/ruby/prism/commit/355f451528
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix UTF-8 code units to match the number of bytes</title>
<updated>2026-04-30T14:27:16+00:00</updated>
<author>
<name>Vinicius Stock</name>
<email>vinistock@users.noreply.github.com</email>
</author>
<published>2026-04-30T14:26:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=df623125e8ca6530191cc015ca45b51625804792'/>
<id>df623125e8ca6530191cc015ca45b51625804792</id>
<content type='text'>
(https://github.com/ruby/prism/pull/4098)

https://github.com/ruby/prism/commit/442bd904ed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/prism/pull/4098)

https://github.com/ruby/prism/commit/442bd904ed
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Reject `END { break }` for Ruby 4.0</title>
<updated>2026-04-27T14:01:26+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-22T19:29:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=558c10413990cb08b7750895b572b0b59eed0d28'/>
<id>558c10413990cb08b7750895b572b0b59eed0d28</id>
<content type='text'>
For [Bug #20409]

https://github.com/ruby/prism/commit/4848eb344e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For [Bug #20409]

https://github.com/ruby/prism/commit/4848eb344e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Implement `on_label_end` for ripper</title>
<updated>2026-04-24T13:35:04+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-24T10:54:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=52ee497f3642900e358dc8133a9e45b805496398'/>
<id>52ee497f3642900e358dc8133a9e45b805496398</id>
<content type='text'>
It is emitted for string-like symbols only

https://github.com/ruby/prism/commit/6d63302c7b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is emitted for string-like symbols only

https://github.com/ruby/prism/commit/6d63302c7b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix incompatibilities for `on_word_sep` in ripper</title>
<updated>2026-04-23T23:49:06+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-23T13:26:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fd9cee5fc39a858ab513a102c9b7f7296feeb860'/>
<id>fd9cee5fc39a858ab513a102c9b7f7296feeb860</id>
<content type='text'>
It was mostly good, just a few edgecases:
* word_sep always only contains a single line. if there are multiple lines, it is also multiple word_sep
* Handle trailing whitespace

The excluded testcase is interpolation mixed with heredoc.
That is not currently handled properly and word_sep contains
the content of the heredoc

I also switched start/end_offset names in the method, they seem to be backwards

https://github.com/ruby/prism/commit/2e151ad41b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was mostly good, just a few edgecases:
* word_sep always only contains a single line. if there are multiple lines, it is also multiple word_sep
* Handle trailing whitespace

The excluded testcase is interpolation mixed with heredoc.
That is not currently handled properly and word_sep contains
the content of the heredoc

I also switched start/end_offset names in the method, they seem to be backwards

https://github.com/ruby/prism/commit/2e151ad41b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Implement bracket/braces events for ripper</title>
<updated>2026-04-14T13:26:49+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-14T11:25:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f7a799af0fb26e3aafb445dcb66266419c1f1201'/>
<id>f7a799af0fb26e3aafb445dcb66266419c1f1201</id>
<content type='text'>
Drops the check against order. Very often ripper emits events in a order
that is not easy to mimic. It's only getting worse now that most events are implemented.

Perhaps the test can be brought back at a later time. For now, I used it while making this commit
but adding all these exceptions makes not much sense.
It already was a pretty long list.

https://github.com/ruby/prism/commit/f43299a18b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Drops the check against order. Very often ripper emits events in a order
that is not easy to mimic. It's only getting worse now that most events are implemented.

Perhaps the test can be brought back at a later time. For now, I used it while making this commit
but adding all these exceptions makes not much sense.
It already was a pretty long list.

https://github.com/ruby/prism/commit/f43299a18b
</pre>
</div>
</content>
</entry>
</feed>
