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
Describe the issue
Ruby heredocs without interpolation have slightly different openings and closings and are not being highlighted correctly.
Which language seems to have the issue?
Ruby
Are you using highlight or highlightAuto?
highlight
Sample Code to Reproduce
# standard heredoc
message = <<-MESSAGE
This looks good
MESSAGE
# heredoc without interpolation
message = <<-'MESSAGE'
This isn't highlighted correctly
MESSAGE
def not_a_string_anymore()
end
Screenshot
Expected behavior
The entire heredoc should be highlighted as a string, with the ending detected.
Describe the issue
Ruby heredocs without interpolation have slightly different openings and closings and are not being highlighted correctly.
Which language seems to have the issue?
Ruby
Are you using
highlight
orhighlightAuto
?highlight
Sample Code to Reproduce
Screenshot
Expected behavior
The entire heredoc should be highlighted as a string, with the ending detected.
Additional context
Ruby documentation:
https://ruby-doc.org/core-2.5.0/doc/syntax/literals_rdoc.html#label-Here+Documents
The text was updated successfully, but these errors were encountered: