<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_syntax.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) 2dd46bb82ffc4dff01d7ea70922f0e407acafb4e: [Backport #20468]</title>
<updated>2024-07-08T22:55:17+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2024-07-08T22:55:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8a2e41d34b135046957e1195a5d4f4967a82a965'/>
<id>8a2e41d34b135046957e1195a5d4f4967a82a965</id>
<content type='text'>
	[Bug #20468] Fix safe navigation in `for` variable
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[Bug #20468] Fix safe navigation in `for` variable
</pre>
</div>
</content>
</entry>
<entry>
<title>Raise SyntaxError on invalid encoding symbol (#10967)</title>
<updated>2024-06-11T18:01:29+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2024-06-11T18:01:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4c50d23245689761e04db450ced9fe9fa76997d0'/>
<id>4c50d23245689761e04db450ced9fe9fa76997d0</id>
<content type='text'>
[Bug #20280]

Backport of #10014.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20280]

Backport of #10014.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix inconsistent evaluation of keyword splat (#10959)</title>
<updated>2024-06-10T23:05:58+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2024-06-10T23:05:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=40251ed0dfe99bb09c2fa542fce603ade25e3729'/>
<id>40251ed0dfe99bb09c2fa542fce603ade25e3729</id>
<content type='text'>
[Bug #20180]

Backports #9624.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20180]

Backports #9624.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix test session reuse but expire (#9824) (#10250)</title>
<updated>2024-03-14T09:55:52+00:00</updated>
<author>
<name>NARUSE, Yui</name>
<email>nurse@users.noreply.github.com</email>
</author>
<published>2024-03-14T09:55:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2a84aaf4a8c8d6d6bbb09416711922532b0033fe'/>
<id>2a84aaf4a8c8d6d6bbb09416711922532b0033fe</id>
<content type='text'>
merge revision(s) 596db9c1f486d6609a4e97d82c8c71b54609fb6f: [Backport #20090]

	[Feature #19370] Blocks without anonymous parameters should not
	 affect

	---
	 parse.y                  | 4 ++--
	 test/ruby/test_syntax.rb | 7 +++++++
	 2 files changed, 9 insertions(+), 2 deletions(-)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
merge revision(s) 596db9c1f486d6609a4e97d82c8c71b54609fb6f: [Backport #20090]

	[Feature #19370] Blocks without anonymous parameters should not
	 affect

	---
	 parse.y                  | 4 ++--
	 test/ruby/test_syntax.rb | 7 +++++++
	 2 files changed, 9 insertions(+), 2 deletions(-)</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #19370] Prohibit nesting anonymous parameter forwarding</title>
<updated>2023-12-25T05:44:04+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-12-23T09:07:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a9f096183170810ac6ce32b20d7810d11a51b5f5'/>
<id>a9f096183170810ac6ce32b20d7810d11a51b5f5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust indent [ci skip]</title>
<updated>2023-12-23T10:36:21+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-12-23T10:36:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fe9e57bac8ec73ad822c1b245376a6cd96139ccb'/>
<id>fe9e57bac8ec73ad822c1b245376a6cd96139ccb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #20062] Fixed numbered parameter syntax error</title>
<updated>2023-12-15T17:11:51+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-12-15T16:07:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=92b10f5be7453aceb5863e46ac775a4ddbf83b97'/>
<id>92b10f5be7453aceb5863e46ac775a4ddbf83b97</id>
<content type='text'>
At the method definition, the local scope that saves the context of
the numbered parameters needs to be pushed before saving.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At the method definition, the local scope that saves the context of
the numbered parameters needs to be pushed before saving.
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent a warning: method redefined</title>
<updated>2023-12-12T01:31:37+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2023-12-12T01:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=207dcf07e1e1359ca87590c8c22867024f20ae03'/>
<id>207dcf07e1e1359ca87590c8c22867024f20ae03</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Support eval "return" at toplevel</title>
<updated>2023-12-07T17:30:36+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2023-10-25T19:49:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3a88de3ca73052809f5c0bfb4ef8cd435b29ae5f'/>
<id>3a88de3ca73052809f5c0bfb4ef8cd435b29ae5f</id>
<content type='text'>
Since Ruby 2.4, `return` is supported at toplevel.  This makes `eval "return"`
also supported at toplevel.

This mostly uses the same tests as direct `return` at toplevel, with a couple
differences:

`END {return if false}` is a SyntaxError, but `END {eval "return" if false}`
is not an error since the eval is never executed. `END {return}` is a
SyntaxError, but `END {eval "return"}` is a LocalJumpError.

The following is a SyntaxError:

```ruby
class X
nil&amp;defined?0--begin e=no_method_error(); return; 0;end
end
```

However, the following is not, because the eval is never executed:

```ruby
class X
nil&amp;defined?0--begin e=no_method_error(); eval "return"; 0;end
end
```

Fixes [Bug #19779]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since Ruby 2.4, `return` is supported at toplevel.  This makes `eval "return"`
also supported at toplevel.

This mostly uses the same tests as direct `return` at toplevel, with a couple
differences:

`END {return if false}` is a SyntaxError, but `END {eval "return" if false}`
is not an error since the eval is never executed. `END {return}` is a
SyntaxError, but `END {eval "return"}` is a LocalJumpError.

The following is a SyntaxError:

```ruby
class X
nil&amp;defined?0--begin e=no_method_error(); return; 0;end
end
```

However, the following is not, because the eval is never executed:

```ruby
class X
nil&amp;defined?0--begin e=no_method_error(); eval "return"; 0;end
end
```

Fixes [Bug #19779]
</pre>
</div>
</content>
</entry>
<entry>
<title>Warn `it` (#9152)</title>
<updated>2023-12-07T07:14:59+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-12-07T07:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ae76c8a11e707176a53c84016256646308f36207'/>
<id>ae76c8a11e707176a53c84016256646308f36207</id>
<content type='text'>
https://bugs.ruby-lang.org/issues/18980</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugs.ruby-lang.org/issues/18980</pre>
</div>
</content>
</entry>
</feed>
