textmate / ruby.tmbundle

TextMate support for Ruby
178 stars 90 forks source link

[ruby] add support for non-interpolated (and others) heredoc syntax #96

Open aeschli opened 8 years ago

aeschli commented 8 years ago

From @rgl on April 11, 2016 8:13

Currently Code supports the Here Documents (aka heredoc) using this syntax:

image

But the following are not supported:

image image image

See the exact details about the Here Documents at the Ruby Manual and also other examples.

Copied from original issue: Microsoft/vscode#5155

aeschli commented 8 years ago

the <<HEREDOC syntax seems to work now (there has been a recent update). But I can reproduce the issue for <<-'EXPECTED'

koenpunt commented 8 years ago

Also, interpolated variables are seen as comments in heredoc blocks:

image