Skip to content

Commit

Permalink
Fix error case with superfluous data in interpolates
Browse files Browse the repository at this point in the history
Fixes sass#2081
  • Loading branch information
mgreter committed Jan 4, 2017
1 parent 46f5244 commit 456e6f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1660,8 +1660,9 @@ namespace Sass {
}
ex->is_interpolant(true);
schema->append(ex);
// ToDo: no error check here?
lex < exactly < rbrace > >();
if (!lex < exactly < rbrace > >()) {
css_error("Invalid CSS", " after ", ": expected \"}\", was ");
}
}
// lex some string constants or other valid token
// Note: [-+] chars are left over from i.e. `#{3}+3`
Expand Down

0 comments on commit 456e6f8

Please sign in to comment.