Fix bug where styles after quote were gobbled

This commit is contained in:
ConnorSkees 2020-02-24 18:11:01 -05:00
parent 8c6be57872
commit 465ac1b381
2 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,7 @@ impl<'a> StyleParser<'a> {
parse_quoted_string(toks, scope, q)?.unquote().to_string(),
));
style.push(tok);
continue;
}
TokenKind::Symbol(Symbol::OpenCurlyBrace)
| TokenKind::Symbol(Symbol::SemiColon) => break,

View File

@ -147,3 +147,7 @@ test!(
"a {\n color: \"\\#{foo}\";\n}\n",
"a {\n color: \"#{foo}\";\n}\n"
);
test!(
styles_after_quoted,
"a {\n color: \"red\";\n color: blue;\n}\n"
);