Project

General

Profile

Actions

Bug #8670

closed

"100do" should be a syntax error

Added by whitequark (whitequark *) over 10 years ago. Updated over 10 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 10 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 10 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 10 years ago

  • Status changed from Assigned to Rejected

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

Matz.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0