Skip to content

Commit

Permalink
Add highlighting of operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Dec 29, 2011
1 parent 2e69480 commit 32e77c7
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@
<key>name</key>
<string>entity.name.tag.stylus</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.constant.stylus</string>
</dict>
</dict>
<key>match</key>
<string>(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b</string>
<key>name</key>
<string>constant.other.color.rgb-value.stylus</string>
</dict>
<dict>
<key>captures</key>
<dict>
Expand All @@ -97,6 +111,12 @@
<key>name</key>
<string>keyword.control.stylus</string>
</dict>
<dict>
<key>match</key>
<string>((?:!|~|\+|-|(?:\*)?\*|\/|%|(?:\.)\.\.|&lt;|&gt;|in|(?:=|:|\?|\+|-|\*|\/|%|&lt;|&gt;)?=|!=|)|(?:is(?:nt)?|not)\b)</string>
<key>name</key>
<string>keyword.operator.stylus</string>
</dict>
<dict>
<key>begin</key>
<string>"</string>
Expand Down Expand Up @@ -157,20 +177,6 @@
<key>name</key>
<string>meta.function.stylus</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.constant.stylus</string>
</dict>
</dict>
<key>match</key>
<string>(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b</string>
<key>name</key>
<string>constant.other.color.rgb-value.stylus</string>
</dict>
<dict>
<key>comment</key>
<string>http://www.w3.org/TR/CSS21/syndata.html#value-def-color</string>
Expand Down

0 comments on commit 32e77c7

Please sign in to comment.