Skip to content

Commit 2d1384c

Browse files
author
volker
committed
Interpolation can contain expression list. Fix for bootstrap 5.3.0.
1 parent 748f86d commit 2d1384c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/main/java/com/inet/sass/parser/ScssParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ private boolean parseInterpolation( StringBuilder builder ) {
17471747

17481748
int line = reader.getLine();
17491749
int column = reader.getColumn();
1750-
SassListItem item = parseExpression( true );
1750+
SassListItem item = parseExpressionOrList();
17511751
sequence.add( new Interpolation( item, line, column ) );
17521752
consumeMarker( '}' );
17531753
stringSequence = sequence;

src/test/resources/automatic/css/interpolation-expression.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
ident-interpolation: -first-4-second--18;
66
slash-not-as-division: 10/5;
77
slash-as-division: 2;
8+
trans: transform 5;
89
}
910

1011
#idSelector-1 {

src/test/resources/automatic/scss/interpolation-expression.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
ident-interpolation: -first-#{$x + $y + $z}-second-#{-(floor($w) + ceil($w)) * abs($z * ceil($w))};
1010
slash-not-as-division: #{10/5};
1111
slash-as-division: #{10/$x};
12+
trans: #{transform $x};
1213
}
1314

1415
$sel: "Sel";

0 commit comments

Comments
 (0)