Sublime Forum

Single quotes in HEREDOC breaks Ruby syntax highlighter

#1

When use HEREDOC in Ruby with single quotes the syntax highlighting breaks in ST2.0.1.

(Tried to attach a screenshot, but was told the attachment quota has been reached…)

Here’s a sample snippet:

  CONTROLS = {
    :scope => {
      :key     => :scope,
      :label   => 'Scope',
      :value   => SCOPE_MODEL,
      :no_save => true,
      :options => [SCOPE_MODEL, SCOPE_LOCAL, SCOPE_SELECTED],
      :type    => TT::GUI::Inputbox::CT_RADIOBOX,
      :group   => 'General'
    },
    
    :validate => {
      :key   => :validate,
      :label => 'Validate Results',
      :tooltip => <<EOT,
Recommended!
(Windows only. OSX users should run Fix Problems manually.)

Runs SketchUp's validation tool after cleaning the model to ensure a healthy model.
EOT
      :value => true,
      :group => 'General'
    },
    
    :statistics => {
      :key   => :statistics,
      :label => 'Show Statistics',
      :tooltip => <<EOT,
Shows a summary of what was done at the end of the cleanup.
EOT
      :value => true,
      :group => 'General'
    }
  }
0 Likes

#2

Any way to report this issue officially? It#s still around and making it difficult to work on some of my Ruby files.

0 Likes