billymoon / Stylus

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

Improvements, fixes #10

Closed nfour closed 11 years ago

nfour commented 11 years ago

Variable assignment

Now has the proper scope, will work for the correct characters, inside property definitions and with the := and ?= operators.

At-rules, properties

@rule-here for at-rules reworked. The previous keyword.stylus is changed to keyword.at-rule.stylus and applies only when matched when it's on its own, so that @property-here variables will be un-highlighted. The @ in such instances is given variable.punctuation.assignment

Constants

Put true false defined and null into constant.language.stylus scope (like in javascript) from the keyword scope

Fixes

Some scopes were incorrect, such as variable.language.stylus for assignments meta.function.stylus was being applied to (. () are granted meta.brace.round scope {} are changed to meta.brace.curly scope ? added to operators scope, considering true ? 1 : 0 syntax

Image

Reference