billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

Stylus operator "(2/1)" isn't recognized, and therefore - not highlighted #55

Closed sheriffderek closed 9 years ago

sheriffderek commented 9 years ago

There may be a few cases like this, but in stylus - you have to wrap your division in parenthesis so that it doesn't get confused when you write font-size 16px/1.4 --- (for abbreviated values) (personally, I would rather live without the short form in favor of leaving out the parenthesis.) A colon seems to get the highlight right. is html c (a/b) a pattern we can isolate?

.selector
    margin-bottom ($pad/2)

vs

.selector
    margin-bottom: ($pad/2)

screen shot 2015-03-10 at 7 48 02 am

screen shot 2015-03-10 at 7 48 13 am

sheriffderek commented 9 years ago

I am very thankful for this. : )

image