From: nagachika00@...
Date: 2015-12-17T18:21:19+00:00
Subject: [ruby-core:72222] [Ruby trunk - Bug #11812] Lack of space between colon and % literal causes syntax error

Issue #11812 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: REQUIRED

----------------------------------------
Bug #11812: Lack of space between colon and % literal causes syntax error
https://bugs.ruby-lang.org/issues/11812#change-55632

* Author: Frederick Cheung
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0preview2 (2015-12-11 trunk 53028) [x86_64-darwin15]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: REQUIRED
----------------------------------------
The following snippet 

~~~
{tags:%w(a)}
~~~

executes fine in ruby 2.2.3, but raises "syntax error, unexpected '%" when run under ruby 2.3.0preview2. When it is changed to

~~~
{tags: %w(a)}
~~~

Then it parses with ruby 2.3.0preview2 too.



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