aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-22 14:26:38 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-22 14:26:38 +0200
commit14beb21d0cef62ca47ad85617bd9460369a15b61 (patch)
treef11fa0f65f0bb212f256ef679e2b9c73c2eb77dd /askama_shared
parentfef994d2f678a56b08f37043c306cfbf4a93427b (diff)
downloadaskama-14beb21d0cef62ca47ad85617bd9460369a15b61.tar.gz
askama-14beb21d0cef62ca47ad85617bd9460369a15b61.tar.bz2
askama-14beb21d0cef62ca47ad85617bd9460369a15b61.zip
Make empty string literals work
Diffstat (limited to '')
-rw-r--r--askama_shared/src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs
index eff1779..5bdcb9b 100644
--- a/askama_shared/src/parser.rs
+++ b/askama_shared/src/parser.rs
@@ -146,7 +146,7 @@ named!(expr_array_lit<Expr>, do_parse!(
));
named!(expr_str_lit<Expr>, map!(
- delimited!(char!('"'), is_not!("\""), char!('"')),
+ delimited!(char!('"'), take_until!("\""), char!('"')),
|s| Expr::StrLit(str::from_utf8(s).unwrap())
));