Commit 5e93024d by Aaron Leung

Bugfix so the parser can handle an arbitrary number of terminal line comments.

parent 1a27d045
......@@ -58,8 +58,11 @@ namespace Sass {
root << parse_warning();
if (!lex< exactly<';'> >()) throw_syntax_error("top-level @warn directive must be terminated by ';'");
}
else if (lex< spaces_and_comments >()) {
continue;
}
else {
lex< spaces_and_comments >();
while (peek< spaces_and_comments >()) lex< spaces_and_comments >();
throw_syntax_error("invalid top-level expression");
}
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