File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2448,12 +2448,16 @@ namespace Sass {
2448
2448
{
2449
2449
Supports_Condition_Ptr cond;
2450
2450
// parse something declaration like
2451
- Declaration_Obj declaration = parse_declaration ();
2452
- if (!declaration) error (" @supports condition expected declaration" , pstate);
2451
+ Expression_Obj feature = parse_expression ();
2452
+ Expression_Obj expression = 0 ;
2453
+ if (lex_css< exactly<' :' > >()) {
2454
+ expression = parse_list (DELAYED);
2455
+ }
2456
+ if (!feature || !expression) error (" @supports condition expected declaration" , pstate);
2453
2457
cond = SASS_MEMORY_NEW (Supports_Declaration,
2454
- declaration ->pstate (),
2455
- declaration-> property () ,
2456
- declaration-> value () );
2458
+ feature ->pstate (),
2459
+ feature ,
2460
+ expression );
2457
2461
// ToDo: maybe we need an additional error condition?
2458
2462
return cond;
2459
2463
}
You can’t perform that action at this time.
0 commit comments