billymoon / Stylus

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

Update Stylus.tmLanguage #19

Closed nfour closed 11 years ago

nfour commented 11 years ago

Got sick of things looking weird in my stylus code, so I fixed some things.

In this

.herp[name=pie][href]

[] Square braces are given meta.brace.square scope name is given entity.other.attribute-name.stylus = is given meta.delimiter.stylus pie is given string.quoted.stylus

Fixed issues in

display: table-cell
vertical-align: top
float: left
clear: right

Where table-cell/table-row/table would be styled to the tag name and not as a property-value, same with top/bottom/left/right for vertical-align, float and clear.

Renamed functions to meta.function-call.stylus as the regex selects actual calls to the function (though technically definition of a function is the same syntax).

UPDATE: Also fixes #17

gbouthenot commented 11 years ago

Thank you ! I switched to your fork, because the original package has not been updated for almost a year.

gbouthenot commented 11 years ago

Thank @billymoon ! I'm glad to see updates to your project !