slim-template / ruby-slim.tmbundle

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

[Feature request] Different scopes between correct and incorrect links. #63

Closed Kristinita closed 7 years ago

Kristinita commented 8 years ago

For example, I have correct code:

div
    'Sasha Ruby,
    a href="https://www.instagram.com/nervov/" Sasha
    |  Diamond!

and incorrect code:

div
'Sasha Ruby,
    a href="https://www.instagram.com/nervov/" Sasha
    |  Diamond!

Highlight correct code on Codepen.io: http://codepen.io/Kristinita/pen/qaBgaO

Highlight incorrect code on Codepen.io: http://codepen.io/Kristinita/pen/bwGzwv

Highlighting are difference.

But in Ruby Slim syntax in Sublime Text scopes no difference for correct and incorrect code:

I think it is necessary to make the distinction between scopes, so that users Slim saw errors in the code.

Thanks.

tshedor commented 7 years ago

@Kristinita Hope I resolved this in 1d54306. If not, please comment and let me know!