<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/prism/templates/src/diagnostic.c.erb, 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 error message for block/lambda with `...` argument</title>
<updated>2026-03-06T17:02:23+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-02-27T10:51:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e7d2828fb677874fb425e6129e0c4c20acc0e1dd'/>
<id>e7d2828fb677874fb425e6129e0c4c20acc0e1dd</id>
<content type='text'>
They currently complain that the parent method is not forwarding.
But the actual problem is that these types of arguments simply don't
accept `...`

Fixes [Bug #21927]

https://github.com/ruby/prism/commit/0aa2363331
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
They currently complain that the parent method is not forwarding.
But the actual problem is that these types of arguments simply don't
accept `...`

Fixes [Bug #21927]

https://github.com/ruby/prism/commit/0aa2363331
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle deeply nested capture variables syntax err</title>
<updated>2025-11-17T02:30:24+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2025-11-16T21:57:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8d0105824f1cf722c1319496ed903b6a18efdafe'/>
<id>8d0105824f1cf722c1319496ed903b6a18efdafe</id>
<content type='text'>
When there are nested capture variables inside of a pattern match
that has an alternation pattern, it is a syntax error. Currently it
only adds a syntax error when it is at the top level of the pattern.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When there are nested capture variables inside of a pattern match
that has an alternation pattern, it is a syntax error. Currently it
only adds a syntax error when it is at the top level of the pattern.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Reject endless method as a block parameter default</title>
<updated>2025-11-14T16:27:38+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-11-03T11:24:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bec69617a00e1d98748b319411f221568a4b6c66'/>
<id>bec69617a00e1d98748b319411f221568a4b6c66</id>
<content type='text'>
Fixes [Bug #21661]

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

https://github.com/ruby/prism/commit/475fa46a82
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #21572] Syntax error at capture in alternation pattern</title>
<updated>2025-11-14T12:03:04+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-10-23T15:57:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f4b6a5191ceb0ed0cd7a3e3c8bab24cc0dd15736'/>
<id>f4b6a5191ceb0ed0cd7a3e3c8bab24cc0dd15736</id>
<content type='text'>
Should fail even with `-c` option.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Should fail even with `-c` option.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] For these special cases, there exists no optional argument type. Since a endless method is started with `=`, there was ambiguity here. We have to simply reject these in all cases.</title>
<updated>2025-10-08T13:04:57+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-10-08T12:54:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b8f8d646a64f883652b44780c4174a85f98d1c82'/>
<id>b8f8d646a64f883652b44780c4174a85f98d1c82</id>
<content type='text'>
This adds a new error for the following reason:
* `def foo arg = nil` is interpreted as a normal method call with optional `arg` without matching `end`
* `def foo *arg = nil; end` is interpreted as a endless method call that has body `nil` with extraneous `end`

`def foo *arg = nil` is somewhere inbetween and I don't know how to otherwise indicate the error.
Now the second case above also shows the newly added error message.

Fixes [Bug #21623]

https://github.com/ruby/prism/commit/e1910d4492
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a new error for the following reason:
* `def foo arg = nil` is interpreted as a normal method call with optional `arg` without matching `end`
* `def foo *arg = nil; end` is interpreted as a endless method call that has body `nil` with extraneous `end`

`def foo *arg = nil` is somewhere inbetween and I don't know how to otherwise indicate the error.
Now the second case above also shows the newly added error message.

Fixes [Bug #21623]

https://github.com/ruby/prism/commit/e1910d4492
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Improve error handling for missing parentheses after 'not' in command calls</title>
<updated>2025-08-05T17:58:09+00:00</updated>
<author>
<name>ydah</name>
<email>t.yudai92@gmail.com</email>
</author>
<published>2025-07-07T10:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=087190fcd21973eb34b600fa82e6567189f4bbd7'/>
<id>087190fcd21973eb34b600fa82e6567189f4bbd7</id>
<content type='text'>
https://github.com/ruby/prism/commit/d9151b8a82
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/d9151b8a82
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Reject `true &amp;&amp; not true`</title>
<updated>2025-08-05T17:58:09+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-06-13T03:44:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f814a777550ee39865f8fe26d0061cba8b715509'/>
<id>f814a777550ee39865f8fe26d0061cba8b715509</id>
<content type='text'>
A command-call-like `not true` must be rejected after `&amp;&amp;` and `||`.

https://bugs.ruby-lang.org/issues/21337

https://github.com/ruby/prism/commit/0513cf22ad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A command-call-like `not true` must be rejected after `&amp;&amp;` and `||`.

https://bugs.ruby-lang.org/issues/21337

https://github.com/ruby/prism/commit/0513cf22ad
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Improve error handling for missing parentheses after 'not' in command calls</title>
<updated>2025-07-16T15:48:09+00:00</updated>
<author>
<name>ydah</name>
<email>t.yudai92@gmail.com</email>
</author>
<published>2025-07-07T10:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4eb0a6cd4daa2ea53b53aa14d463040912c0838c'/>
<id>4eb0a6cd4daa2ea53b53aa14d463040912c0838c</id>
<content type='text'>
https://github.com/ruby/prism/commit/d9151b8a82
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/d9151b8a82
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Reject `true &amp;&amp; not true`</title>
<updated>2025-07-16T15:48:09+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-06-13T03:44:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4cf85fe2140d0522f924ab57c850b2f03b967390'/>
<id>4cf85fe2140d0522f924ab57c850b2f03b967390</id>
<content type='text'>
A command-call-like `not true` must be rejected after `&amp;&amp;` and `||`.

https://bugs.ruby-lang.org/issues/21337

https://github.com/ruby/prism/commit/0513cf22ad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A command-call-like `not true` must be rejected after `&amp;&amp;` and `||`.

https://bugs.ruby-lang.org/issues/21337

https://github.com/ruby/prism/commit/0513cf22ad
</pre>
</div>
</content>
</entry>
<entry>
<title>Use a single quote instead of a backtick for error messages</title>
<updated>2025-01-06T01:50:53+00:00</updated>
<author>
<name>Junichi Ito</name>
<email>jit@sonicgarden.jp</email>
</author>
<published>2024-12-22T03:54:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c8e3d745fabc2060a6e5c7342c881bb31f58f5f5'/>
<id>c8e3d745fabc2060a6e5c7342c881bb31f58f5f5</id>
<content type='text'>
Fix https://bugs.ruby-lang.org/issues/20977
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix https://bugs.ruby-lang.org/issues/20977
</pre>
</div>
</content>
</entry>
</feed>
