From 19559e5c09db6a801a358f4ed39ab386d9a7bed5 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Fri, 15 Mar 2024 18:47:29 -0400 Subject: [PATCH] Allow any ASCII whitespace instead of just space after `<%` --- sailfish-compiler/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sailfish-compiler/src/parser.rs b/sailfish-compiler/src/parser.rs index 9fb0de5..62ee6b7 100644 --- a/sailfish-compiler/src/parser.rs +++ b/sailfish-compiler/src/parser.rs @@ -165,7 +165,7 @@ impl<'a> ParseStream<'a> { token_kind = TokenKind::BufferedCode { escape: None }; start += 1; } - Some(b' ') => {} + Some(b) if b.is_ascii_whitespace() => {} Some(b'%') if self.source[start..] == self.block_delimiter.1 => {} _ => return Err(self.error("Invalid block syntax")), }