Fix bug where styles after quote were gobbled
This commit is contained in:
parent
8c6be57872
commit
465ac1b381
@ -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,
|
||||
|
@ -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"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user