Project

General

Profile

Bug #11849

Heredoc regression in 2.2.4

Added by whitequark (whitequark *) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.4p230 (2015-12-16 revision 53155)
[ruby-core:72396]

Description

The following code gets rejected by 2.2.4:

{
  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).

Updated by whitequark (whitequark *) over 4 years ago

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Description updated (diff)
  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
#3

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Status changed from Open to Closed

Applied in changeset r53214.


parse.y: labeled heredoc

  • parse.y (parser_yylex): allow here documents in labeled argument. [ruby-core:72396] [Bug #11849]

Updated by nagachika (Tomoyuki Chikanaga) over 4 years ago

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

Backported into ruby_2_2 branch at r53258.

Are there any concrete gems which is affected by this regression?
I want to know the severity of this issue in the real world.

Also available in: Atom PDF