Project

General

Profile

ActionsLike0

Bug #8670

closed

"100do" should be a syntax error

Added by whitequark (whitequark *) over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 2.0.0p0 (2013-02-24 revision 39474)
[ruby-core:56122]

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

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

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

I've thought it's a spec.

Updated by naruse (Yui NARUSE) over 11 years ago

nobu (Nobuyoshi Nakada) wrote:

I've thought it's a spec.

I think so too and it should be.

Updated by matz (Yukihiro Matsumoto) over 11 years ago

  • Status changed from Assigned to Rejected

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

Matz.

ActionsLike0

Also available in: Atom PDF