ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:65211] [ruby-trunk - Bug #10279] [Open] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
@ 2014-09-22  8:53 ` jack-montaach-ybur
  2014-09-22  9:13 ` [ruby-core:65212] [ruby-trunk - Bug #10279] " shibata.hiroshi
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jack-montaach-ybur @ 2014-09-22  8:53 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been reported by Jack Montaach.

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279

* Author: Jack Montaach
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:65212] [ruby-trunk - Bug #10279] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
  2014-09-22  8:53 ` [ruby-core:65211] [ruby-trunk - Bug #10279] [Open] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression jack-montaach-ybur
@ 2014-09-22  9:13 ` shibata.hiroshi
  2014-09-23  1:14 ` [ruby-core:65230] [ruby-trunk - Bug #10279] [Assigned] " nobu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: shibata.hiroshi @ 2014-09-22  9:13 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been updated by Hiroshi SHIBATA.


trunk is same behaviour:

```
ruby 2.2.0preview1 (2014-09-17 trunk 47616) [x86_64-darwin13]
10279.rb:1: syntax error, unexpected modifier_if
h = { key: if true
```

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279#change-49047

* Author: Jack Montaach
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:65230] [ruby-trunk - Bug #10279] [Assigned] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
  2014-09-22  8:53 ` [ruby-core:65211] [ruby-trunk - Bug #10279] [Open] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression jack-montaach-ybur
  2014-09-22  9:13 ` [ruby-core:65212] [ruby-trunk - Bug #10279] " shibata.hiroshi
@ 2014-09-23  1:14 ` nobu
  2014-09-23  1:14 ` [ruby-core:65231] [ruby-trunk - Bug #10279] " nobu
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: nobu @ 2014-09-23  1:14 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been updated by Nobuyoshi Nakada.

Description updated
Category changed from core to syntax
Status changed from Open to Assigned
Assignee changed from Yukihiro Matsumoto to Nobuyoshi Nakada

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279#change-49063

* Author: Jack Montaach
* Status: Assigned
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: syntax
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~ruby
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:65231] [ruby-trunk - Bug #10279] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2014-09-23  1:14 ` [ruby-core:65230] [ruby-trunk - Bug #10279] [Assigned] " nobu
@ 2014-09-23  1:14 ` nobu
  2014-09-23  1:15 ` [ruby-core:65233] " nobu
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: nobu @ 2014-09-23  1:14 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been updated by Nobuyoshi Nakada.

Related to Bug #9669: Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses. added

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279#change-49064

* Author: Jack Montaach
* Status: Assigned
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: syntax
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~ruby
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:65233] [ruby-trunk - Bug #10279] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2014-09-23  1:14 ` [ruby-core:65231] [ruby-trunk - Bug #10279] " nobu
@ 2014-09-23  1:15 ` nobu
  2014-09-23 13:00 ` [ruby-core:65242] [ruby-trunk - Bug #10279] [Closed] " nobu
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: nobu @ 2014-09-23  1:15 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been updated by Nobuyoshi Nakada.

Backport set to 2.0.0: DONTNEED, 2.1: REQUIRED

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279#change-49066

* Author: Jack Montaach
* Status: Assigned
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: syntax
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 2.0.0: DONTNEED, 2.1: REQUIRED
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~ruby
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:65242] [ruby-trunk - Bug #10279] [Closed] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2014-09-23  1:15 ` [ruby-core:65233] " nobu
@ 2014-09-23 13:00 ` nobu
  2014-09-23 17:40 ` [ruby-core:65246] [ruby-trunk - Bug #10279] " nagachika00
  2014-09-24 15:13 ` [ruby-core:65257] " usa
  7 siblings, 0 replies; 8+ messages in thread
From: nobu @ 2014-09-23 13:00 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been updated by Nobuyoshi Nakada.

Status changed from Assigned to Closed
% Done changed from 0 to 100

Applied in changeset r47696.

----------
parse.y: label cannot be followed by a modifier

* parse.y (parse_ident): just after a label, new expression should
  start, cannot be a modifier.  [ruby-core:65211] [Bug #10279]

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279#change-49072

* Author: Jack Montaach
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: syntax
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 2.0.0: DONTNEED, 2.1: REQUIRED
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~ruby
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:65246] [ruby-trunk - Bug #10279] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2014-09-23 13:00 ` [ruby-core:65242] [ruby-trunk - Bug #10279] [Closed] " nobu
@ 2014-09-23 17:40 ` nagachika00
  2014-09-24 15:13 ` [ruby-core:65257] " usa
  7 siblings, 0 replies; 8+ messages in thread
From: nagachika00 @ 2014-09-23 17:40 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED to 2.0.0: DONTNEED, 2.1: DONE

Backported r47696 and r47697 into `ruby_2_1` branch at r47703.

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279#change-49078

* Author: Jack Montaach
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: syntax
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 2.0.0: DONTNEED, 2.1: DONE
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~ruby
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:65257] [ruby-trunk - Bug #10279] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
       [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2014-09-23 17:40 ` [ruby-core:65246] [ruby-trunk - Bug #10279] " nagachika00
@ 2014-09-24 15:13 ` usa
  7 siblings, 0 replies; 8+ messages in thread
From: usa @ 2014-09-24 15:13 UTC (permalink / raw
  To: ruby-core

Issue #10279 has been updated by Usaku NAKAMURA.

Duplicated by Bug #10288: Parser incompatibility between 2.1.2 and 2.1.3 added

----------------------------------------
Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression 
https://bugs.ruby-lang.org/issues/10279#change-49086

* Author: Jack Montaach
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: syntax
* Target version: next minor
* ruby -v: 2.1.3
* Backport: 2.0.0: DONTNEED, 2.1: DONE
----------------------------------------
The following gives syntax error on ruby 2.1.3

~~~ruby
h = { key: if true
             "yes"
           else
             "no"
           end }

puts h.inspect
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1: syntax error, unexpected modifier_if
h = { key: if true
             ^
x.rb:3: syntax error, unexpected keyword_else, expecting end-of-input
~~~

~~~
/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby x.rb
{:key=>"yes"}
~~~




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-09-24 15:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-10279.20140922085302@ruby-lang.org>
2014-09-22  8:53 ` [ruby-core:65211] [ruby-trunk - Bug #10279] [Open] Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression jack-montaach-ybur
2014-09-22  9:13 ` [ruby-core:65212] [ruby-trunk - Bug #10279] " shibata.hiroshi
2014-09-23  1:14 ` [ruby-core:65230] [ruby-trunk - Bug #10279] [Assigned] " nobu
2014-09-23  1:14 ` [ruby-core:65231] [ruby-trunk - Bug #10279] " nobu
2014-09-23  1:15 ` [ruby-core:65233] " nobu
2014-09-23 13:00 ` [ruby-core:65242] [ruby-trunk - Bug #10279] [Closed] " nobu
2014-09-23 17:40 ` [ruby-core:65246] [ruby-trunk - Bug #10279] " nagachika00
2014-09-24 15:13 ` [ruby-core:65257] " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).