slim-template / ruby-slim.tmbundle

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

Syntax highlight with rails helper #36

Closed pywebdesign closed 7 years ago

pywebdesign commented 10 years ago

Syntax highlight is horrible for this line and many rails tag helpers

= image_tag("logo.png", alt: "Cesure Logo", class: "logo")

alt: and class: are not the same color, parenthesis are another color ans : too.

It could be possible to catch the parenthesis, they are not necessary in ruby but could help syntax highlight. my 2 cents

jaredbeck commented 9 years ago

I'm seeing the same issue with multiple classes. e.g.

= image_tag("a.png", class: "a b c d")

Maybe there's a regex and it expects the value of class to be a single word? Just guessing.

tshedor commented 8 years ago

Hey @jaredbeck and @pywebdesign the Slim package was just updated with a fix to this. When convenient, would you please pull the update and verify that the helper is now highlighted as expected?

jaredbeck commented 8 years ago

I haven't used textmate or sublime in almost two years; can't help, sorry.