Issue #11849 has been updated by _ wanabe.


Ref: https://github.com/whitequark/parser/issues/231#issuecomment-165921156

----------------------------------------
Bug #11849: Heredoc regression in 2.2.4
https://bugs.ruby-lang.org/issues/11849#change-55948

* Author: whitequark *
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155)
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
----------------------------------------
The following code gets rejected by 2.2.4:

~~~ruby
{
  label:<<-DOC
Some text for a heredoc goes here
  DOC
}
~~~

However, it was valid in 2.2.3.

I think this might have been introduced in r51617 (#10653).



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>