refactored operand(), and take away parsing of -()
This commit is contained in:
parent
9a276481f1
commit
ef61aec5f1
@ -795,12 +795,8 @@ less.parser = {
|
||||
// such as a Color, or a Variable
|
||||
//
|
||||
operand: function () {
|
||||
var o;
|
||||
if (o = $(this.sub) || $(this.entities.dimension) ||
|
||||
$(this.entities.color) || $(this.entities.variable) ||
|
||||
(peek(/-[0-9]/g) && $('-') && $(this.operand))) {
|
||||
return o;
|
||||
}
|
||||
return $(this.sub) || $(this.entities.dimension) ||
|
||||
$(this.entities.color) || $(this.entities.variable);
|
||||
},
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user