jacott / Enhanced-Ruby-Mode

An enhanced ruby-mode for Emacs that uses Ripper in ruby 1.9.2 to highlight and indent the source code
Other
53 stars 64 forks source link

special unicode characters in here-doc break highlighting #3

Closed nilclass closed 12 years ago

nilclass commented 13 years ago

To reproduce:

# encoding: utf-8

class Foo
  HERE = <<DOC
äöü
DOC

  def bar(baz)
  end
end

In this case it shifts the colors below the here-doc by the number of umlauts in the doc.

jacott commented 12 years ago

Thanks. The bug appears to be with the ruby parser; I have pushed a work-around

nilclass commented 12 years ago

great, thanks.