atom / language-ruby-on-rails

Ruby on Rails package for Atom
Other
48 stars 41 forks source link

Highlight/snippets not working in *.js.erb strings #39

Open art-solopov opened 9 years ago

art-solopov commented 9 years ago

Right now, the highlight and interpolation only work outside of string in *.js.erb files.

For example, in this code:

$('#daily_modal .modal-header h4 .date').html("<%= t('.title', date: show_value(@date)) %>")

The parameter to the .html call is uniformly highlighted as a string:

screenshot - 31 08 2015 - 13 26 55

it'd be nice to have it highlighted as Ruby.