language-ruby
language-ruby copied to clipboard
Pasting heredoc doesn't auto indent correctly
trafficstars
- Paste heredoc:
sql = <<-SQL
blah1
blah2
SQL
- Expect:
sql = <<-SQL
blah1
blah2
SQL
- Actual:
sql = <<-SQL
blah1
blah2
SQL
Note the missing indention for blah1 and blah2. I've noticed it with other things in ruby as well like certain blocks and if/else statements.


Also happens with this syntax:
- Paste this:
Blah.run sql,
:foo => "bar",
:baz => "wick"
- Expected
Blah.run sql,
:foo => "bar",
:baz => "wick"
- Actual:
Blah.run sql,
:foo => "bar",
:baz => "wick"