Bug #8670

"100do" should be a syntax error

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

[ruby-core:56122]
Status:Rejected
Priority:Low
Assignee:Yukihiro Matsumoto
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

=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

History

#1 Updated by Nobuyoshi Nakada almost 2 years ago

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

I've thought it's a spec.

#2 Updated by Yui NARUSE almost 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 almost 2 years ago

  • Status changed from Assigned to Rejected

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

Matz.

Also available in: Atom PDF