Skip to content

Commit 859aad3

Browse files
committed
Merge pull request #2065 from mgreter/bugfix/issue_1537
Add error when comma lists are used as map keys
2 parents e83064c + 3ca32a7 commit 859aad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ namespace Sass {
10291029
if (peek_css< exactly<')'> >(position))
10301030
{ break; }
10311031

1032-
Expression* key = parse_list();
1032+
Expression* key = parse_space_list();
10331033
if (String_Quoted* str = dynamic_cast<String_Quoted*>(key)) {
10341034
if (!str->quote_mark() && !str->is_delayed()) {
10351035
if (const Color* col = name_to_color(str->value())) {
@@ -1042,7 +1042,7 @@ namespace Sass {
10421042
}
10431043

10441044
if (!(lex< exactly<':'> >()))
1045-
{ error("invalid syntax", pstate); }
1045+
{ css_error("Invalid CSS", " after ", ": expected \":\", was "); }
10461046

10471047
Expression* value = parse_space_list();
10481048

0 commit comments

Comments
 (0)