Skip to content

Commit 456e6f8

Browse files
committed
Fix error case with superfluous data in interpolates
Fixes #2081
1 parent 46f5244 commit 456e6f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/parser.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,8 +1660,9 @@ namespace Sass {
16601660
}
16611661
ex->is_interpolant(true);
16621662
schema->append(ex);
1663-
// ToDo: no error check here?
1664-
lex < exactly < rbrace > >();
1663+
if (!lex < exactly < rbrace > >()) {
1664+
css_error("Invalid CSS", " after ", ": expected \"}\", was ");
1665+
}
16651666
}
16661667
// lex some string constants or other valid token
16671668
// Note: [-+] chars are left over from i.e. `#{3}+3`

0 commit comments

Comments
 (0)