Commit 7b1e24ad by Aaron Leung

Catching unrecognized top-level expressions.

parent 56d88009
...@@ -49,6 +49,10 @@ namespace Sass { ...@@ -49,6 +49,10 @@ namespace Sass {
root[0].has_expansions = true; root[0].has_expansions = true;
if (!lex< exactly<';'> >()) syntax_error("top-level @include directive must be terminated by ';'"); if (!lex< exactly<';'> >()) syntax_error("top-level @include directive must be terminated by ';'");
} }
else {
lex< spaces_and_comments >();
syntax_error("invalid top-level expression");
}
lex<optional_spaces>(); lex<optional_spaces>();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment