diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-10-09 11:47:53 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-10-09 11:47:53 +0200 |
commit | 81080812777c7a1998f579908f159e383e3c9a31 (patch) | |
tree | ff42a8861af397a1fa1e76335106fa0a719fc9c1 | |
parent | f230c78926a63407f96ddb0ab83d6817d293649b (diff) | |
download | askama-81080812777c7a1998f579908f159e383e3c9a31.tar.gz askama-81080812777c7a1998f579908f159e383e3c9a31.tar.bz2 askama-81080812777c7a1998f579908f159e383e3c9a31.zip |
Remove use of deprecated nom macro
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs index eaa4b62..7769ed4 100644 --- a/askama_derive/src/parser.rs +++ b/askama_derive/src/parser.rs @@ -808,7 +808,7 @@ named_args!(block_node<'a>(s: &'a Syntax<'a>) <Input<'a>, Node<'a>>, do_parse!( named_args!(block_comment<'a>(s: &'a Syntax<'a>) <Input<'a>, Node<'a>>, do_parse!( call!(tag_comment_start, s) >> pws: opt!(tag!("-")) >> - inner: take_until_s!(s.comment_end) >> + inner: take_until!(s.comment_end) >> call!(tag_comment_end, s) >> (Node::Comment(WS(pws.is_some(), inner.len() > 1 && inner[inner.len() - 1] == b'-'))) )); |