Skip to content

Commit

Permalink
Merge pull request sass#1054 from mgreter/bugfix/issue_1053
Browse files Browse the repository at this point in the history
Fix one regression with error reporting
  • Loading branch information
mgreter committed Apr 7, 2015
2 parents b05e666 + 64f8397 commit 0135278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,8 @@ namespace Sass {
else {
error("invalid property name", pstate);
}
if (!lex_css< one_plus< exactly<':'> > >()) error("property \"" + string(lexed) + "\" must be followed by a ':'", pstate);
const string property(lexed);
if (!lex_css< one_plus< exactly<':'> > >()) error("property \"" + property + "\" must be followed by a ':'", pstate);
if (peek_css< exactly<';'> >()) error("style declaration must contain a value", pstate);
if (peek_css< static_value >()) {
return new (ctx.mem) Declaration(prop->pstate(), prop, parse_static_value()/*, lex<important>()*/);
Expand Down

0 comments on commit 0135278

Please sign in to comment.