Skip to content

Commit 1f8b7ad

Browse files
committed
Merge pull request #1008 from mgreter/bugfix/issue_1007
Fix parsing of another missed block comment
2 parents 01492f5 + d45026a commit 1f8b7ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

parser.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ namespace Sass {
448448
sel = parse_selector_group();
449449
}
450450
bool old_in_at_root = in_at_root;
451+
lex < css_comments >();
451452
in_at_root = false;
452453
ParserState r_source_position = pstate;
453454
if (!peek< exactly<'{'> >()) error("expected a '{' after the selector", pstate);
@@ -960,9 +961,9 @@ namespace Sass {
960961
else {
961962
error("invalid property name", pstate);
962963
}
963-
if (!lex< one_plus< exactly<':'> > >()) error("property \"" + string(lexed) + "\" must be followed by a ':'", pstate);
964-
if (peek< exactly<';'> >()) error("style declaration must contain a value", pstate);
965-
if (peek< static_value >()) {
964+
if (!lex_css< one_plus< exactly<':'> > >()) error("property \"" + string(lexed) + "\" must be followed by a ':'", pstate);
965+
if (peek_css< exactly<';'> >()) error("style declaration must contain a value", pstate);
966+
if (peek_css< static_value >()) {
966967
return new (ctx.mem) Declaration(prop->pstate(), prop, parse_static_value()/*, lex<important>()*/);
967968
}
968969
else {

0 commit comments

Comments
 (0)