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
@alexr00 the heredoc content starts from the line following the heredoc identifier (LOG in our case) and we can use the heredoc identifier as a variable in that line, so log(<<-LOG) is a valid function call and <<-LOG is referring to the content after this line (and also ends with LOG). https://docs.ruby-lang.org/en/2.5.0/syntax/literals_rdoc.html
For short, ) is not part of the multiline string, our grammar is kind of wrong.
alexr00
changed the title
Ruby heredoc in method arguments break braces syntax
Ruby heredoc in method arguments breaks parenthese recognition
Nov 20, 2018
From @amerov on November 8, 2018 21:16
The closing paren gets classified incorrectly as string.unquoted.heredoc.ruby on line 7.
Highlighting example, incorrect on the left, correct on the right.
Copied from original issue: microsoft/vscode#62812
The text was updated successfully, but these errors were encountered: