Skip to content

Commit

Permalink
use dummy semicolon to create mixin call with one argument containing
Browse files Browse the repository at this point in the history
comma separated css list. fix #33
  • Loading branch information
Horcrux7 committed Feb 19, 2017
1 parent 5251396 commit 29652e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/com/inet/lib/less/LessParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -1106,16 +1106,15 @@ private Expression concat( Expression left, char operator, Expression right ) {
if( left == null ) {
return right;
}
if( right == null ) {
return left;
}
Operation op;
if( left.getClass() == Operation.class && ((Operation)left).getOperator() == operator ) {
op = (Operation)left;
} else {
op = new Operation( reader, left, operator );
}
op.addOperand( right );
if( right != null ) {
op.addOperand( right );
}
return op;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
color-2: #008000;
padding-2: 2;
}
.dummyParameter {
color-1: 1, 2, 3;
color-2: 1, 2, 3;
padding-2: 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
}
.some .selector div {
.mixin(#008000);
}
}
.dummyParameter {
.mixin(1, 2, 3;)
}

0 comments on commit 29652e8

Please sign in to comment.