Skip to content

Commit 0135278

Browse files
committed
Merge pull request #1054 from mgreter/bugfix/issue_1053
Fix one regression with error reporting
2 parents b05e666 + 64f8397 commit 0135278

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,8 @@ namespace Sass {
973973
else {
974974
error("invalid property name", pstate);
975975
}
976-
if (!lex_css< one_plus< exactly<':'> > >()) error("property \"" + string(lexed) + "\" must be followed by a ':'", pstate);
976+
const string property(lexed);
977+
if (!lex_css< one_plus< exactly<':'> > >()) error("property \"" + property + "\" must be followed by a ':'", pstate);
977978
if (peek_css< exactly<';'> >()) error("style declaration must contain a value", pstate);
978979
if (peek_css< static_value >()) {
979980
return new (ctx.mem) Declaration(prop->pstate(), prop, parse_static_value()/*, lex<important>()*/);

0 commit comments

Comments
 (0)