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 truefalsedefined 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
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 previouskeyword.stylus
is changed tokeyword.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 givenvariable.punctuation.assignment
Constants
Put
true
false
defined
andnull
intoconstant.language.stylus
scope (like in javascript) from thekeyword
scopeFixes
Some scopes were incorrect, such as
variable.language.stylus
for assignmentsmeta.function.stylus
was being applied to(
.()
are grantedmeta.brace.round
scope{}
are changed tometa.brace.curly
scope?
added to operators scope, consideringtrue ? 1 : 0
syntaxReference