Allow any ASCII whitespace instead of just space after `<%`

This commit is contained in:
Michael Pfaff 2024-03-15 18:47:29 -04:00
parent 6e09ca7464
commit 19559e5c09
1 changed files with 1 additions and 1 deletions

View File

@ -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")),
}