Skip to content

Commit 558dd71

Browse files
committed
Remove extension validation from parser
The check nesting visitor is responsible for AST validation. This was left over from #2062.
1 parent 50167c2 commit 558dd71

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/parser.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ namespace Sass {
240240
}
241241

242242
else if (lex < kwd_extend >(true)) {
243-
if (block->is_root()) {
244-
error("Extend directives may only be used within rules.", pstate);
245-
}
246-
247243
Lookahead lookahead = lookahead_for_include(position);
248244
if (!lookahead.found) css_error("Invalid CSS", " after ", ": expected selector, was ");
249245
Selector_Obj target;

0 commit comments

Comments
 (0)