File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2247,15 +2247,17 @@ namespace Sass {
2247
2247
if (lex < kwd_not >()) { media_query->is_negated (true ); lex < css_comments >(false ); }
2248
2248
else if (lex < kwd_only >()) { media_query->is_restricted (true ); lex < css_comments >(false ); }
2249
2249
2250
- if (lex < identifier_schema >()) media_query->media_type (parse_identifier_schema ());
2251
- else if (lex < identifier >()) media_query->media_type (parse_interpolated_chunk (lexed));
2250
+ if (lex < identifier_schema >()) media_query->media_type (parse_identifier_schema ());
2251
+ else if (lex < identifier >()) media_query->media_type (parse_interpolated_chunk (lexed));
2252
2252
else media_query->append (parse_media_expression ());
2253
2253
2254
2254
while (lex_css < kwd_and >()) media_query->append (parse_media_expression ());
2255
2255
if (lex < identifier_schema >()) {
2256
2256
String_Schema* schema = SASS_MEMORY_NEW (String_Schema, pstate);
2257
- schema->append (media_query->media_type ());
2258
- schema->append (SASS_MEMORY_NEW (String_Constant, pstate, " " ));
2257
+ if (media_query->media_type ()) {
2258
+ schema->append (media_query->media_type ());
2259
+ schema->append (SASS_MEMORY_NEW (String_Constant, pstate, " " ));
2260
+ }
2259
2261
schema->append (parse_identifier_schema ());
2260
2262
media_query->media_type (schema);
2261
2263
}
You can’t perform that action at this time.
0 commit comments