Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LearnBoost/stylus
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 26, 2011
2 parents 3cb18d0 + 70c3783 commit b760e1d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/stylus
Expand Up @@ -134,7 +134,7 @@ while (args.length) {
switch (arg) {
case '-h':
case '--help':
console.log(usage);
console.error(usage);
process.exit(1);
case '-d':
case '--compare':
Expand Down
2 changes: 1 addition & 1 deletion lib/lexer.js
Expand Up @@ -435,7 +435,7 @@ Lexer.prototype = {

media: function() {
var captures;
if (captures = /^@media *([^{\n]+)/.exec(this.str)) {
if (captures = /^@media *([^\/{\n]+)/.exec(this.str)) {
this.skip(captures);
return new Token('media', captures[1].trim());
}
Expand Down
5 changes: 5 additions & 0 deletions test/cases/regression.415.css
@@ -0,0 +1,5 @@
@media screen and (min-width: 481px) {
#test {
display: none;
}
}
3 changes: 3 additions & 0 deletions test/cases/regression.415.styl
@@ -0,0 +1,3 @@
@media screen and (min-width: 481px) //asdasdasd
#test
display none

0 comments on commit b760e1d

Please sign in to comment.