<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/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] Clarify the documentation of -x, it always searches a</title>
<updated>2026-05-15T18:28:32+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2026-05-15T18:28:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=547a7b8d1ab94fac12f2fa2e83052c68111ebba1'/>
<id>547a7b8d1ab94fac12f2fa2e83052c68111ebba1</id>
<content type='text'>
shebang that includes "ruby"
(https://github.com/ruby/prism/pull/4110)

* Clarify the documentation of -x, it always searches a shebang that includes "ruby"

* Update one more occurence

---------

https://github.com/ruby/prism/commit/0cdf579295

Co-authored-by: Earlopain &lt;14981592+Earlopain@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
shebang that includes "ruby"
(https://github.com/ruby/prism/pull/4110)

* Clarify the documentation of -x, it always searches a shebang that includes "ruby"

* Update one more occurence

---------

https://github.com/ruby/prism/commit/0cdf579295

Co-authored-by: Earlopain &lt;14981592+Earlopain@users.noreply.github.com&gt;
</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] 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>Rename `putstring` instruction as `dupstring`</title>
<updated>2026-04-29T21:30:50+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2026-04-29T02:40:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=072a6a4a10e94410e2f3d70ea0952ec8ad7f63d8'/>
<id>072a6a4a10e94410e2f3d70ea0952ec8ad7f63d8</id>
<content type='text'>
As well as `putchilledstring` as `dupchilledstring`.

This is more consistent with similar `duparray` and `duphash`
instructions and better reflect it's behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As well as `putchilledstring` as `dupchilledstring`.

This is more consistent with similar `duparray` and `duphash`
instructions and better reflect it's behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix array-bounds error with GCC 9</title>
<updated>2026-04-29T08:02:33+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2026-04-06T12:47:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d3ef85a100a4d051fcafc6ef6c09c4faaecc086a'/>
<id>d3ef85a100a4d051fcafc6ef6c09c4faaecc086a</id>
<content type='text'>
* In file included from /usr/include/string.h:535,
                 from include/prism/internal/arena.h:12,
                 from src/prism.c:6:
  In function 'memset',
    inlined from 'lex_mode_push_regexp' at src/prism.c:290:5:
  .../string_fortified.h:59:10: error: '__builtin_memset' offset [26, 34] from the object at 'lex_mode' is out of the bounds of referenced subobject 'breakpoints' with type 'uint8_t[7]' {aka 'unsigned char[7]'} at offset 18 [-Werror=array-bounds]

https://github.com/ruby/prism/commit/2908c1c6c5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* In file included from /usr/include/string.h:535,
                 from include/prism/internal/arena.h:12,
                 from src/prism.c:6:
  In function 'memset',
    inlined from 'lex_mode_push_regexp' at src/prism.c:290:5:
  .../string_fortified.h:59:10: error: '__builtin_memset' offset [26, 34] from the object at 'lex_mode' is out of the bounds of referenced subobject 'breakpoints' with type 'uint8_t[7]' {aka 'unsigned char[7]'} at offset 18 [-Werror=array-bounds]

https://github.com/ruby/prism/commit/2908c1c6c5
</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] Reject `return` and similar with block pass argument</title>
<updated>2026-04-09T11:48:11+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-09T11:11:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=51a3f0847782095340df5dbc8fb87450dbc1fbe7'/>
<id>51a3f0847782095340df5dbc8fb87450dbc1fbe7</id>
<content type='text'>
Same handling as for `yield`. Fixes [Bug #21988]

https://github.com/ruby/prism/commit/2dd20183ad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Same handling as for `yield`. Fixes [Bug #21988]

https://github.com/ruby/prism/commit/2dd20183ad
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix type for `ArrayPatternNode#rest`</title>
<updated>2026-04-05T10:27:02+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-04T10:30:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=79b5c50b500f3b82ad8c82b073d2ae59fcd1f551'/>
<id>79b5c50b500f3b82ad8c82b073d2ae59fcd1f551</id>
<content type='text'>
It can only ever be one of these two

https://github.com/ruby/prism/commit/f871ce0260
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It can only ever be one of these two

https://github.com/ruby/prism/commit/f871ce0260
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Generate templated sources under main/java-templates</title>
<updated>2026-04-01T14:03:45+00:00</updated>
<author>
<name>Charles Oliver Nutter</name>
<email>headius@headius.com</email>
</author>
<published>2026-03-24T16:51:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8824fd3bb5c79086b46d2205911d11a7f3fd81f9'/>
<id>8824fd3bb5c79086b46d2205911d11a7f3fd81f9</id>
<content type='text'>
This path avoids the sources getting wiped out during `mvn clean`,
since they are not generated during the maven build.

This patch also moves the generated WASM build under src/main/wasm
since it is really a source file and not a test file. It will not
be included in the built artifact.

https://github.com/ruby/prism/commit/08dba29eb5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This path avoids the sources getting wiped out during `mvn clean`,
since they are not generated during the maven build.

This patch also moves the generated WASM build under src/main/wasm
since it is really a source file and not a test file. It will not
be included in the built artifact.

https://github.com/ruby/prism/commit/08dba29eb5
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Remove a warning from `discarded-qualifiers`</title>
<updated>2026-04-01T11:14:42+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-01T11:00:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ce398d7545f04bd8b81a908f5ae905ba290c13b9'/>
<id>ce398d7545f04bd8b81a908f5ae905ba290c13b9</id>
<content type='text'>
I've been seeing this for a while now:
```
../../../../ext/prism/../../src/memchr.c: In function ‘pm_memchr’:
../../../../ext/prism/../../src/memchr.c:35:16: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   35 |         return memchr(memory, character, number);
      |                ^~~~~~
```

https://github.com/ruby/prism/commit/a3b1f10dbc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I've been seeing this for a while now:
```
../../../../ext/prism/../../src/memchr.c: In function ‘pm_memchr’:
../../../../ext/prism/../../src/memchr.c:35:16: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   35 |         return memchr(memory, character, number);
      |                ^~~~~~
```

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