diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-29 21:49:42 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-29 21:49:44 +0100 |
commit | cb660c7b8d398800d91d7c4c6c3276959fd14e71 (patch) | |
tree | 40f1dfad0cefe21dbcbf7ac1dd2707f7ed8df428 /askama_shared/src/parser.rs | |
parent | 91c2bbf80468c12d0663330cff185f1d7680c91e (diff) | |
download | askama-cb660c7b8d398800d91d7c4c6c3276959fd14e71.tar.gz askama-cb660c7b8d398800d91d7c4c6c3276959fd14e71.tar.bz2 askama-cb660c7b8d398800d91d7c4c6c3276959fd14e71.zip |
Move parser into askama_shared
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/parser.rs (renamed from askama_derive/src/parser.rs) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/askama_derive/src/parser.rs b/askama_shared/src/parser.rs index 910815a..9c3358e 100644 --- a/askama_derive/src/parser.rs +++ b/askama_shared/src/parser.rs @@ -5,10 +5,10 @@ use nom::combinator::{complete, map, opt}; use nom::error::ParseError; use nom::multi::{many0, many1, separated_list, separated_nonempty_list}; use nom::sequence::{delimited, pair, tuple}; -use nom::{self, Compare, IResult, InputTake}; +use nom::{self, error_position, Compare, IResult, InputTake}; use std::str; -use askama_shared::Syntax; +use crate::Syntax; #[derive(Debug)] pub enum Expr<'a> { @@ -1042,7 +1042,7 @@ pub fn parse<'a>(src: &'a str, syntax: &'a Syntax<'a>) -> Vec<Node<'a>> { #[cfg(test)] mod tests { - use askama_shared::Syntax; + use crate::Syntax; fn check_ws_split(s: &str, res: &(&str, &str, &str)) { let node = super::split_ws_parts(s.as_bytes()); |