Bug #8670

"100do" should be a syntax error

Added by Peter Zotov 9 months ago. Updated 9 months ago.

[ruby-core:56122]
Status:Rejected
Priority:Low
Assignee:Yukihiro Matsumoto
Category:syntax
Target version:2.1.0
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 9 months ago

  • Category set to syntax
  • Status changed from Open to Assigned
  • Assignee set to Yukihiro Matsumoto
  • 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 9 months 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 9 months 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