prettier-ruby
prettier-ruby copied to clipboard
Support heredoc squiggly syntax
Input
Ruby 2.3 supports the following syntax:
documentation = <<~HEREDOC.strip_heredoc
hello world
version: #{current_version}
----------------------------------------------------
Usage:
- etc
- etc
- etc
HEREDOC
Current output
documentation = 'hello world
'.strip_heredoc
Expected output
Same as input
Note that you don’t need the .strip_heredoc here — the squiggly heredoc syntax does that for you.
@j-f1 Thanks for the heads up! :+1: