summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-25 22:22:40 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-25 22:23:49 +0200
commit6ada7a8a5edc6123f35205c047e274113a0f8b2c (patch)
treef513fd4ae6c5473ba035e1a34a77405f950d8712
parent470479601f7ec4d3d625f0042ab32ae15e3b7eae (diff)
downloadrebel-6ada7a8a5edc6123f35205c047e274113a0f8b2c.tar
rebel-6ada7a8a5edc6123f35205c047e274113a0f8b2c.zip
rebel-parse: tokenize: allow whitespae in interpolated expressions
-rw-r--r--crates/rebel-parse/src/grammar/tokenize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rebel-parse/src/grammar/tokenize.rs b/crates/rebel-parse/src/grammar/tokenize.rs
index 8ca9d59..841e61b 100644
--- a/crates/rebel-parse/src/grammar/tokenize.rs
+++ b/crates/rebel-parse/src/grammar/tokenize.rs
@@ -76,7 +76,7 @@ peg::parser! {
/ string_interp()
rule string_interp() -> StringPiece<'input>
- = "{{" tokens:subtoken()* "}}" {
+ = "{{" _ tokens:(subtoken() ++ _) _ "}}" {
StringPiece::Interp(TokenStream(tokens))
}