File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1231,6 +1231,11 @@ namespace Sass {
1231
1231
}
1232
1232
// if it's a singleton, return it directly; don't wrap it
1233
1233
if (!peek< class_char< static_ops > >(position)) return factor;
1234
+ return parse_operators (factor);
1235
+ }
1236
+
1237
+ Expression* Parser::parse_operators (Expression* factor)
1238
+ {
1234
1239
// parse more factors and operators
1235
1240
vector<Expression*> operands; // factors
1236
1241
vector<Binary_Expression::Type> operators; // ops
@@ -1522,7 +1527,12 @@ namespace Sass {
1522
1527
(*schema) << new (ctx.mem ) Textual (pstate, Textual::DIMENSION, lexed);
1523
1528
}
1524
1529
else if (lex< number >()) {
1525
- (*schema) << new (ctx.mem ) Textual (pstate, Textual::NUMBER, lexed);
1530
+ Expression* factor = new (ctx.mem ) Textual (pstate, Textual::NUMBER, lexed);
1531
+ if (peek< class_char< static_ops > >()) {
1532
+ (*schema) << parse_operators (factor);
1533
+ } else {
1534
+ (*schema) << factor;
1535
+ }
1526
1536
}
1527
1537
else if (lex< hex >()) {
1528
1538
(*schema) << new (ctx.mem ) Textual (pstate, Textual::HEX, unquote (lexed));
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ namespace Sass {
243
243
String* parse_ie_property ();
244
244
String* parse_ie_keyword_arg ();
245
245
String_Schema* parse_value_schema (const char * stop);
246
+ Expression* parse_operators (Expression* factor);
246
247
String* parse_identifier_schema ();
247
248
// String_Schema* parse_url_schema();
248
249
If* parse_if_directive (bool else_if = false );
You can’t perform that action at this time.
0 commit comments