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 75933cb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,9 +1004,9 @@ namespace Sass {
List_Obj list = SASS_MEMORY_CAST(List, key);
if (list && list->delimiter() == SASS_NO_DELIMITER) {
list->delimiter(SASS_PARENTHESIS);
}
}
return key;
}
}

Expression_Obj value = parse_space_list();

Expand Down 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 75933cb

Please sign in to comment.