Skip to content

Commit 01074d8

Browse files
authored
Merge pull request #2285 from mgreter/bugfix/issue-2081
Fix error case with superfluous data in interpolates
2 parents 9ab7daa + 456e6f8 commit 01074d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/parser.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1644,8 +1644,9 @@ namespace Sass {
16441644
}
16451645
ex->is_interpolant(true);
16461646
schema->append(ex);
1647-
// ToDo: no error check here?
1648-
lex < exactly < rbrace > >();
1647+
if (!lex < exactly < rbrace > >()) {
1648+
css_error("Invalid CSS", " after ", ": expected \"}\", was ");
1649+
}
16491650
}
16501651
// lex some string constants or other valid token
16511652
// Note: [-+] chars are left over from i.e. `#{3}+3`

0 commit comments

Comments
 (0)