slim-template / ruby-slim.tmbundle

A Textmate / Sublime Text bundle for Slim
http://slim-lang.com/
MIT License
184 stars 46 forks source link

syntax highlight error #5

Closed newlix closed 12 years ago

newlix commented 13 years ago

hi,

"#{pluralize(@product.errors.count, "error")} prohibited this product from being saved:"

the #{.......} part will be treated as string

It will be nicer to treat it as different part as the haml bundle does.

thanks.

squidfunk commented 12 years ago

Can be fixed by adding:

{   include = '#embedded-ruby'; }

at the end of the file where all patterns are defined for "tag-stuff".

waynehoover commented 12 years ago

@squidfunk this only seems to work on new lines. That is:

span= "#{e.starts_at.strftime('%l:%M%P')}"

doesn't highlight correctly but

span
  = "#{e.starts_at.strftime('%l:%M%P')}"

does. Any ideas on that one?