we need to make sure we're not eating a '-' in the operation parsing, it fucks up our generation of functions which start with a -

This commit is contained in:
cloudhead 2010-03-11 15:36:32 -05:00
parent 8adac6569e
commit 9c84b50d5b

View File

@ -525,7 +525,7 @@ less.parser = {
var o;
if (o = $(this.sub) || $(this.entities.dimension) ||
$(this.entities.color) || $(this.entities.variable) ||
($('-') && $(this.operand))) {
(peek(/-[0-9]/g) && $('-') && $(this.operand))) {
return o;
}
},