From 35b7afa5b26a49217119c2ba4d73994f5b61fce0 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Wed, 4 Jan 2017 23:51:54 +0100 Subject: [PATCH] Fix error case with superfluous data in interpolates Fixes https://github.com/sass/libsass/issues/2081 --- src/parser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index 818108ae0e..e608f318b1 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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`