diff --git a/src/atrule/function.rs b/src/atrule/function.rs index e50d492..c72da9a 100644 --- a/src/atrule/function.rs +++ b/src/atrule/function.rs @@ -183,6 +183,7 @@ impl Function { } } Stmt::AtRule(AtRule::Each(..)) => todo!("@each in @function"), + // todo: multiline comments _ => return Err(("This at-rule is not allowed here.", stmt.span).into()), } } diff --git a/tests/selectors.rs b/tests/selectors.rs index 6ee8354..3ae461b 100644 --- a/tests/selectors.rs +++ b/tests/selectors.rs @@ -512,9 +512,9 @@ test!( "\\61 {\n color: red;\n}\n", "a {\n color: red;\n}\n" ); -/// this checks for a bug in which the selector -/// contents get longer as a result of interpolation, -/// which interferes with span information. +// this checks for a bug in which the selector +// contents get longer as a result of interpolation, +// which interferes with span information. test!( selector_span_gets_larger, "$a: aaaaaaaaaaa;\n\n#{$a} {\n color: foo;\n}\n",