File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1469,6 +1469,7 @@ namespace Sass {
1469
1469
{
1470
1470
const char * p = start ? start : position;
1471
1471
const char * q;
1472
+ bool saw_stuff = false ;
1472
1473
bool saw_interpolant = false ;
1473
1474
1474
1475
while ((q = peek< identifier >(p)) ||
@@ -1508,12 +1509,13 @@ namespace Sass {
1508
1509
(q = peek< sequence< exactly<' -' >, interpolant > >(p)) ||
1509
1510
(q = peek< sequence< pseudo_prefix, interpolant > >(p)) ||
1510
1511
(q = peek< interpolant >(p))) {
1512
+ saw_stuff = true ;
1511
1513
p = q;
1512
1514
if (*(p - 1 ) == ' }' ) saw_interpolant = true ;
1513
1515
}
1514
1516
1515
1517
Selector_Lookahead result;
1516
- result.found = peek< exactly<' {' > >(p) ? p : 0 ;
1518
+ result.found = saw_stuff && peek< exactly<' {' > >(p) ? p : 0 ;
1517
1519
result.has_interpolants = saw_interpolant;
1518
1520
1519
1521
return result;
You can’t perform that action at this time.
0 commit comments