aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/parser.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-05-18 17:13:52 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-05-23 11:14:22 +0200
commite30cad33fd28c0d2546fbd70afa6834bea195f9e (patch)
tree90b2d331aa419077b506b4d8dfdc5b0ccfe72029 /askama_shared/src/parser.rs
parentc78c1dfc25a8bbc6a1ceffbce31f102e9afc8007 (diff)
downloadaskama-e30cad33fd28c0d2546fbd70afa6834bea195f9e.tar.gz
askama-e30cad33fd28c0d2546fbd70afa6834bea195f9e.tar.bz2
askama-e30cad33fd28c0d2546fbd70afa6834bea195f9e.zip
Move configuration into its own module
Diffstat (limited to '')
-rw-r--r--askama_shared/src/parser.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs
index 19df795..efcad73 100644
--- a/askama_shared/src/parser.rs
+++ b/askama_shared/src/parser.rs
@@ -10,7 +10,8 @@ use nom::multi::{fold_many0, many0, many1, separated_list0, separated_list1};
use nom::sequence::{delimited, pair, preceded, terminated, tuple};
use nom::{self, error_position, AsChar, IResult, InputTakeAtPosition};
-use crate::{CompileError, Syntax};
+use crate::config::Syntax;
+use crate::CompileError;
#[derive(Debug, PartialEq)]
pub(crate) enum Node<'a> {
@@ -1224,7 +1225,7 @@ pub(crate) fn parse<'a>(
#[cfg(test)]
mod tests {
use super::{Expr, Node, Whitespace, Ws};
- use crate::Syntax;
+ use crate::config::Syntax;
fn check_ws_split(s: &str, res: &(&str, &str, &str)) {
match super::split_ws_parts(s) {