Skip to content

Commit

Permalink
Fix css class regex
Browse files Browse the repository at this point in the history
If you had a number like .95 without prefixing it with 0. it would
treat it as a class.

See
http://stackoverflow.com/questions/448981/what-characters-are-valid-in-c
ss-class-names

Also a period on its own was being treated as a class since the class
name was optional.
  • Loading branch information
ccampbell committed Oct 21, 2012
1 parent b5bfa2d commit 33e9bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</dict>
</dict>
<key>match</key>
<string>(\.)(?:[a-zA-Z0-9_-]+)?</string>
<string>\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*</string>
<key>name</key>
<string>entity.other.attribute-name.class.stylus</string>
</dict>
Expand Down

0 comments on commit 33e9bd2

Please sign in to comment.