Vscode-ruby: Wiggly heredoc support

Created on 6 Jan 2017  路  1Comment  路  Source: rubyide/vscode-ruby

Your environment

  • vscode-ruby version: 0.10.4
  • Ruby version: 2.3.0 (Although VS Code use by default system 2.0.0)
  • VS Code version: 1.8.1
  • Operating System: macOS Sierra
  • Hardware (optional):

Wiggly heredocs are not working with the extension's syntax coloring.

Expected behavior

Wiggly heredocs are colored correctly, like in VS Code default Ruby syntax (Ruby extension disabled):

capture d ecran 2017-01-06 a 10 08 36

Actual behavior

Wiggly heredocs are not recognized. Futhermore, having unbalanced quotes in the heredoc breaks completely the syntax coloring for the rest of the file.

capture d ecran 2017-01-06 a 10 10 14

Steps to reproduce the problem

Open a ruby file containing a wiggly heredoc, e.g.:

<<~EOF
I'm heredoc!
EOF

(Ironically, GitHub suffers from the same bug, so the snippet is incorrectly colored)

Most helpful comment

This seems to still be broken, or maybe it broke again?

Your environment

  • vscode-ruby version: 0.17.0 (March 4 2018)
  • Ruby version: 2.4.3 (when I run ruby --version as a custom task in cscode, I get ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17], so maybe vscode is using a differnet version)
  • VS Code version: 1.21.1
  • Operating System: macOS High Sierra

alt

>All comments

This seems to still be broken, or maybe it broke again?

Your environment

  • vscode-ruby version: 0.17.0 (March 4 2018)
  • Ruby version: 2.4.3 (when I run ruby --version as a custom task in cscode, I get ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17], so maybe vscode is using a differnet version)
  • VS Code version: 1.21.1
  • Operating System: macOS High Sierra

alt

Was this page helpful?
0 / 5 - 0 ratings