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 #2081
  • Loading branch information
mgreter authored and xzyfer committed Jan 7, 2017
1 parent 20b0f9a commit 35b7afa
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 @@ -1636,8 +1636,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 35b7afa

Please sign in to comment.