From eb7fe520741eb1a992ee2beaa383177087e7ab22 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Tue, 19 May 2020 18:28:18 -0400 Subject: [PATCH] minor cleanup --- src/atrule/function.rs | 1 + tests/selectors.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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",