From 1586c2947fdc61f9f79c310a4c29aa23beba3a53 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Sat, 14 Jan 2023 14:50:15 +0100 Subject: [PATCH] fixup! block attributes --- src/attr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attr.rs b/src/attr.rs index 30dcb7c..10a5436 100644 --- a/src/attr.rs +++ b/src/attr.rs @@ -117,7 +117,6 @@ impl> Parser { match self.state { Start => match c { '{' => Whitespace, - c if c.is_whitespace() => Start, _ => Invalid, }, Whitespace => match c { @@ -349,6 +348,7 @@ mod test { #[test] fn valid_invalid() { + assert_eq!(super::valid(" {.valid}".chars()), 0); assert_eq!(super::valid("{.class invalid}".chars()), 0); assert_eq!(super::valid("abc".chars()), 0); assert_eq!(super::valid("{.abc.}".chars()), 0);