minor cleanup

This commit is contained in:
ConnorSkees 2020-05-19 18:28:18 -04:00
parent 017bc971b4
commit eb7fe52074
2 changed files with 4 additions and 3 deletions

View File

@ -183,6 +183,7 @@ impl Function {
} }
} }
Stmt::AtRule(AtRule::Each(..)) => todo!("@each in @function"), Stmt::AtRule(AtRule::Each(..)) => todo!("@each in @function"),
// todo: multiline comments
_ => return Err(("This at-rule is not allowed here.", stmt.span).into()), _ => return Err(("This at-rule is not allowed here.", stmt.span).into()),
} }
} }

View File

@ -512,9 +512,9 @@ test!(
"\\61 {\n color: red;\n}\n", "\\61 {\n color: red;\n}\n",
"a {\n color: red;\n}\n" "a {\n color: red;\n}\n"
); );
/// this checks for a bug in which the selector // this checks for a bug in which the selector
/// contents get longer as a result of interpolation, // contents get longer as a result of interpolation,
/// which interferes with span information. // which interferes with span information.
test!( test!(
selector_span_gets_larger, selector_span_gets_larger,
"$a: aaaaaaaaaaa;\n\n#{$a} {\n color: foo;\n}\n", "$a: aaaaaaaaaaa;\n\n#{$a} {\n color: foo;\n}\n",