Skip to content

Commit

Permalink
Fix reported position when no token can be parsed
Browse files Browse the repository at this point in the history
Finally fix #979
  • Loading branch information
mgreter committed Mar 29, 2015
1 parent 8e7a294 commit 8d8dc08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ namespace Sass {
}
else {
lex< css_whitespace >();
before_token = after_token;
if (position >= end) break;
error("invalid top-level expression", pstate);
error("invalid top-level expression", after_token);
}
lex< optional_spaces >();
}
Expand Down

0 comments on commit 8d8dc08

Please sign in to comment.