Skip to content

Commit 8d8dc08

Browse files
committed
Fix reported position when no token can be parsed
Finally fix #979
1 parent 8e7a294 commit 8d8dc08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ namespace Sass {
143143
}
144144
else {
145145
lex< css_whitespace >();
146-
before_token = after_token;
147146
if (position >= end) break;
148-
error("invalid top-level expression", pstate);
147+
error("invalid top-level expression", after_token);
149148
}
150149
lex< optional_spaces >();
151150
}

0 commit comments

Comments
 (0)