You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hiya! Came across this issue when testing rufo's changes to a codebase. Rufo adds a trailing comma to hash args, which can break heredocs, as follows:
{content: <<-EOF This is a heredoc EOF}
...gets transformed to
{content: <<-EOF This is a heredoc EOF,]
Which will yield the error:
test.rb:5: can't find string "EOF" anywhere before EOFtest.rb:2: syntax error, unexpected end-of-input, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
In cases of heredocs, commas simply can't be placed without breaking the terminator.
The text was updated successfully, but these errors were encountered:
Hiya! Came across this issue when testing rufo's changes to a codebase. Rufo adds a trailing comma to hash args, which can break heredocs, as follows:
...gets transformed to
Which will yield the error:
In cases of heredocs, commas simply can't be placed without breaking the terminator.
The text was updated successfully, but these errors were encountered: