Issue #8670 has been updated by naruse (Yui NARUSE).


nobu (Nobuyoshi Nakada) wrote:
> I've thought it's a spec.

I think so too and it should be.
----------------------------------------
Bug #8670: "100do" should be a syntax error
https://bugs.ruby-lang.org/issues/8670#change-40633

Author: whitequark (Peter Zotov)
Status: Assigned
Priority: Low
Assignee: matz (Yukihiro Matsumoto)
Category: syntax
Target version: current: 2.1.0
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474)
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
In certain contexts, `do' adjacent to a number can be parsed as a distinct token instead of syntax error.

For example:

(({Shoes.app width: 330do end}))
=end



-- 
http://bugs.ruby-lang.org/