allow whitespace after variable name in declaration
This commit is contained in:
parent
b93e3c6f21
commit
f5d3400666
@ -531,6 +531,7 @@ pub(crate) fn eat_expr<I: Iterator<Item = Token>>(
|
||||
continue;
|
||||
}
|
||||
let name = eat_ident_no_interpolation(toks)?;
|
||||
devour_whitespace(toks);
|
||||
if toks.peek().unwrap().kind == ':' {
|
||||
toks.next();
|
||||
devour_whitespace(toks);
|
||||
|
@ -112,3 +112,8 @@ test!(
|
||||
"$input: foo;\na {\n color: $input#{\"literal\"};\n}\n",
|
||||
"a {\n color: foo literal;\n}\n"
|
||||
);
|
||||
test!(
|
||||
whitespace_after_variable_name_in_declaration,
|
||||
"a {\n $x : true;\n color: $x;\n}\n",
|
||||
"a {\n color: true;\n}\n"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user