diff --git a/parser.cpp b/parser.cpp index 1300185b7a..ee6383a634 100644 --- a/parser.cpp +++ b/parser.cpp @@ -954,7 +954,11 @@ namespace Sass { return new (ctx.mem) Declaration(prop->pstate(), prop, parse_static_value()/*, lex()*/); } else { - return new (ctx.mem) Declaration(prop->pstate(), prop, parse_list()/*, lex()*/); + Expression* list_ex = parse_list(); + if (List* list = dynamic_cast(list_ex)) { + if (list->length() == 0) css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was "); + } + return new (ctx.mem) Declaration(prop->pstate(), prop, list_ex/*, lex()*/); } }