Actions
Bug #19563
closedRipper.tokenize(code).join != code when heredoc and multiline %w[] literal is on the same line
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0dev (2023-03-29T21:57:52Z master 1b06422767) [x86_64-linux]
Description
Ripper.tokenize "<<EOF || %w[hello\nEOF\n\n\n\nworld]"
# actual result
["<<EOF", " ", "||", " ", "%w[", "hello", "\n\n\n\n", "EOF\n", "world", "]"]
# expected result
["<<EOF", " ", "||", " ", "%w[", "hello", "\n", "EOF\n", "\n\n\n", "world", "]"]
same for %i[]
literal.
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0