Comparing version 0.42.1 to 0.42.2
@@ -57,2 +57,3 @@ | ||
function Lexer(str, options) { | ||
var self = this; | ||
options = options || {}; | ||
@@ -67,2 +68,3 @@ this.stash = []; | ||
|| s.lastIndexOf('//', offset) > s.lastIndexOf('\n', offset); | ||
++self.lineno; | ||
return inComment | ||
@@ -69,0 +71,0 @@ ? str |
@@ -42,2 +42,3 @@ | ||
var clone = new Import(this.path.nodeName ? this.path.clone() : this.path, this.once); | ||
clone.mtime = this.mtime; | ||
clone.lineno = this.lineno; | ||
@@ -44,0 +45,0 @@ clone.filename = this.filename; |
@@ -122,5 +122,11 @@ | ||
, inclusive = '..' == op; | ||
do { | ||
expr.push(new nodes.Unit(start)); | ||
} while (inclusive ? ++start <= end : ++start < end); | ||
if (start < end) { | ||
do { | ||
expr.push(new nodes.Unit(start)); | ||
} while (inclusive ? ++start <= end : ++start < end); | ||
} else { | ||
do { | ||
expr.push(new nodes.Unit(start)); | ||
} while (inclusive ? --start >= end : --start > end); | ||
} | ||
return expr; | ||
@@ -127,0 +133,0 @@ } |
@@ -1047,3 +1047,3 @@ | ||
while ('=' != this.lookahead(++i).type | ||
&& !~[',', 'newline', 'indent', 'eos'].indexOf(this.lookahead(i).type)) ; | ||
&& !~['[', ',', 'newline', 'indent', 'eos'].indexOf(this.lookahead(i).type)) ; | ||
if ('=' == this.lookahead(i).type) { | ||
@@ -1050,0 +1050,0 @@ this._ident = this.peek(); |
@@ -455,3 +455,5 @@ /*! | ||
// debug info for firebug, the crazy formatting is needed | ||
path = 'file\\\:\\\/\\\/' + path.replace(/(\/|\.)/g, '\\$1'); | ||
path = 'file\\\:\\\/\\\/' + path.replace(/([.:/\\])/g, function(m) { | ||
return '\\' + (m === '\\' ? '\/' : m) | ||
}); | ||
line = '\\00003' + line; | ||
@@ -458,0 +460,0 @@ this.buf += '\n@media -stylus-debug-info' |
@@ -52,3 +52,4 @@ | ||
var importStack = this.importStack | ||
, Parser = require('../parser'); | ||
, Parser = require('../parser') | ||
, stat; | ||
@@ -69,6 +70,4 @@ // Handling the `require` | ||
// Store the modified time | ||
fs.stat(file, function(err, stat){ | ||
if (err) return; | ||
node.mtime = stat.mtime; | ||
}); | ||
stat = fs.statSync(file); | ||
node.mtime = stat.mtime; | ||
this.paths.push(node.dirname); | ||
@@ -921,2 +920,9 @@ | ||
// normalize arguments | ||
if ('arguments' != args.nodeName) { | ||
var expr = new nodes.Expression; | ||
expr.push(args); | ||
args = nodes.Arguments.fromExpression(expr); | ||
} | ||
// arguments local | ||
@@ -1220,2 +1226,3 @@ scope.add(new nodes.Ident('arguments', args)); | ||
case 'media': | ||
case 'atblock': | ||
case 'page': | ||
@@ -1260,3 +1267,6 @@ nodes = block.nodes; | ||
case 'group': | ||
case 'function': | ||
case 'keyframes': | ||
case 'page': | ||
case 'fontface': | ||
case 'atblock': | ||
case 'media': | ||
@@ -1263,0 +1273,0 @@ return block; |
{ | ||
"name": "stylus", | ||
"description": "Robust, expressive, and feature-rich CSS superset", | ||
"version": "0.42.1", | ||
"version": "0.42.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
798865
10189