Skip to content

Commit 548bb4a

Browse files
committed
Fix another sass error
1 parent 098799f commit 548bb4a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/parser_stylesheet.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,18 @@ namespace Sass {
399399
EnvFrame local(context.varStack, false);
400400

401401
Offset start(scanner.offset);
402-
return withChildren<StyleRule>(
402+
StyleRuleObj styles = withChildren<StyleRule>(
403403
&StylesheetParser::readChildStatement,
404404
start, readStyleRule.ptr(), local.idxs);
405405

406+
if (isIndented() && styles->empty()) {
407+
context.addWarning(
408+
"This selector doesn't have any properties and won't be rendered.",
409+
itpl->pstate());
410+
}
411+
412+
return styles.detach();
413+
406414
}
407415
// EO readStyleRule
408416

0 commit comments

Comments
 (0)