Bug #8670

"100do" should be a syntax error

Added by Peter Zotov about 2 years ago. Updated about 2 years ago.

Assignee:Yukihiro Matsumoto
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN


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}))


#1 Updated by Nobuyoshi Nakada about 2 years ago

  • Assignee set to Yukihiro Matsumoto
  • Category set to syntax
  • Status changed from Open to Assigned
  • Priority changed from Normal to 3
  • Target version set to 2.1.0

I've thought it's a spec.

#2 Updated by Yui NARUSE about 2 years ago

nobu (Nobuyoshi Nakada) wrote:

I've thought it's a spec.

I think so too and it should be.

#3 Updated by Yukihiro Matsumoto about 2 years ago

  • Status changed from Assigned to Rejected

It's spec. Ruby does not require spaces when it's clear.


Also available in: Atom PDF