Skip to content

Commit 71159d9

Browse files
committed
correct the handling of a minus character a in a space delimited parameter list. fix #68
1 parent c9a997f commit 71159d9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/com/inet/lib/less/LessParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ private Expression parseExpression( char leftOperator ) {
764764
left = concat( left, ' ', buildExpression( trim( builder ) ) );
765765
}
766766
builder.append( ch );
767-
builder.append( ch2 );
767+
back( ch2 );
768768
wasWhite = false;
769769
break;
770770
} else {

test/com/inet/lib/less/samples/general/minus.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
calcVariable: calc(90% -10px);
2828
calcNested: calc(100% - (2 * 2em));
2929
calcEscaped: calc(100% - (2 * 2em));
30+
margin: 0 -12;
3031
}
3132
:root {
3233
--main-bg-color: pink;

test/com/inet/lib/less/samples/general/minus.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
calcVariable: calc(@a -@b);
3232
calcNested: calc(100% - (2 * 2em));
3333
calcEscaped: calc(~"100% - (2 * 2em)");
34+
margin: 0 -((@line-height-computed / 2) + 30);
3435
}
3536
:root {
3637
--main-bg-color: pink;

0 commit comments

Comments
 (0)