Actions
Bug #17547
closedFix `Ripper.lex("a <<b")`
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
Description
Ripper.lex("a <<b")
was not parsed correctly.
require "ripper"
p Ripper.lex("a <<b")
# Expected behavior => [[[1, 0], :on_ident, "a", CMDARG], [[1, 1], :on_sp, " ", CMDARG], [[1, 2], :on_heredoc_beg, "<<b", CMDARG]]
# Actual behavior => [[[1, 2], :on_heredoc_beg, "<<b", CMDARG]]
Actions
Like0
Like0Like0