We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While looking into #83 I tried rufo on a number of repositories for commonly-used gems and came across a few issues.
This one is a testcase extracted from the pry gem.
Example code:
puts (<<-HELLO hello world HELLO )
which after running rufo turns into
puts (<<-HELLO hello world HELLO)
which is now invalid:
$ ruby heredoc.rb heredoc.rb:3: can't find string "HELLO" anywhere before EOF heredoc.rb:1: syntax error, unexpected end-of-input, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END puts (<<-HELLO ^
The text was updated successfully, but these errors were encountered:
Thanks for reporting this ❤️. I have a failing test for this issue here https://github.com/ruby-formatter/rufo/compare/chore/fix-heredoc-issue
Sorry, something went wrong.
Fix heredoc within parens formatting causing subsequent syntax error
c969ae6
Fix for issue ruby-formatter#88
81f3517
Fixed with #116
No branches or pull requests
While looking into #83 I tried rufo on a number of repositories for commonly-used gems and came across a few issues.
This one is a testcase extracted from the pry gem.
Example code:
which after running rufo turns into
which is now invalid:
The text was updated successfully, but these errors were encountered: