From: usa@... Date: 2017-06-30T10:31:01+00:00 Subject: [ruby-core:81849] [Ruby trunk Bug#13536] Ripper fails to tokenize nested squiggly heredoc Issue #13536 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED ruby_2_3 r59214 merged revision(s) 58545,58584. ---------------------------------------- Bug #13536: Ripper fails to tokenize nested squiggly heredoc https://bugs.ruby-lang.org/issues/13536#change-65568 * Author: shyouhei (Shyouhei Urabe) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0dev (2017-05-02 trunk 58544) [x86_64-darwin15] * Backport: 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED ---------------------------------------- ```ruby require 'ripper' str = \ <<~'end' <<~"do" #{ <<~"begin" this must be a valid ruby begin } do end puts eval(str) str == Ripper.tokenize(str) ``` This program fails at the last line. -- https://bugs.ruby-lang.org/ Unsubscribe: