Allow any ASCII whitespace instead of just space after `<%`
This commit is contained in:
parent
6e09ca7464
commit
19559e5c09
|
@ -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")),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue