Commit d3423177 by Aaron Leung

Correctly handling the odd edge-case when parsing terminal comments.

parent 140608f8
......@@ -367,11 +367,16 @@ namespace Sass {
block << rule;
// block.has_rules_or_comments = true;
block[0].has_rules_or_comments = true;
semicolon = true;
semicolon = true;
lex< exactly<';'> >(); // ???
if (!definition && rule[1].eval_me) context.pending.push_back(rule);
}
else lex< exactly<';'> >();
while (lex< block_comment >()) block << Node(line_number, Node::comment, lexed);
while (lex< block_comment >()) {
block << Node(line_number, Node::comment, lexed);
block[0].has_rules_or_comments = true;
cerr << "Parsing a terminal comment: " << string(lexed) << endl;
}
}
return block;
}
......
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