Issue #10288 has been updated by Usaku NAKAMURA.

Duplicates Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression  added

----------------------------------------
Bug #10288: Parser incompatibility between 2.1.2 and 2.1.3
https://bugs.ruby-lang.org/issues/10288#change-49085

* Author: Akira Matsuda
* Status: Closed
* Priority: Normal
* Assignee: Tomoyuki Chikanaga
* Category: syntax
* Target version: 
* ruby -v: ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin12.0]
* Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED
----------------------------------------
This code successfully prints {:foo=>1} in 2.1.2 and current trunk but causes "syntax error, unexpected modifier_if" in 2.1.3

~~~
p({foo: if true then 1 end})
~~~



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