From 14beb21d0cef62ca47ad85617bd9460369a15b61 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 22 Oct 2017 14:26:38 +0200 Subject: Make empty string literals work --- askama_shared/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/parser.rs') 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, do_parse!( )); named!(expr_str_lit, map!( - delimited!(char!('"'), is_not!("\""), char!('"')), + delimited!(char!('"'), take_until!("\""), char!('"')), |s| Expr::StrLit(str::from_utf8(s).unwrap()) )); -- cgit