allow for operations with no spaces, such as '4+5'

nohash
cloudhead 15 years ago
parent ef61aec5f1
commit 10965a9034

@ -782,7 +782,8 @@ less.parser = {
addition: function () {
var m, a, op;
if (m = $(this.multiplication)) {
if ((op = $(/[-+]\s+/g)) && (a = $(this.addition))) {
if ((op = $(/[-+]\s+/g) || (input[i - 1] != ' ' && $(/[-+]/g))) &&
(a = $(this.addition))) {
return new(tree.Operation)(op, [m, a]);
} else {
return m;

Loading…
Cancel
Save