Project

General

Profile

Actions

Bug #3456

closed

bisarre comma

Added by shyouhei (Shyouhei Urabe) almost 12 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
-
Backport:
[ruby-dev:41654]

Description

=begin
ひょっとして意図的なのかもしれませんが、以下のような謎の , が1.9系でSyntax OKになるのはなんででしょう?

% ruby -wcve 'x y , ;'
ruby 1.8.8dev (2010-06-15 revision 27061) [x86_64-linux]
-e:1: syntax error, unexpected ';'
% ruby -wcve 'x y , ;'
ruby 1.9.3dev (2010-06-19 trunk 28363) [x86_64-linux]
Syntax OK
=end

Actions

Also available in: Atom PDF