From 0f590b5cd27928380c5b405ddea484b435e6eada Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Thu, 2 Jul 2020 19:08:04 -0400 Subject: [PATCH] move value parsing into separate directory --- src/parse/value/mod.rs | 1 + src/parse/{value.rs => value/parse.rs} | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 src/parse/value/mod.rs rename src/parse/{value.rs => value/parse.rs} (99%) diff --git a/src/parse/value/mod.rs b/src/parse/value/mod.rs new file mode 100644 index 0000000..06f1a3c --- /dev/null +++ b/src/parse/value/mod.rs @@ -0,0 +1 @@ +mod parse; diff --git a/src/parse/value.rs b/src/parse/value/parse.rs similarity index 99% rename from src/parse/value.rs rename to src/parse/value/parse.rs index e5dc3bd..04b7093 100644 --- a/src/parse/value.rs +++ b/src/parse/value/parse.rs @@ -19,15 +19,14 @@ use crate::{ peek_until_closing_curly_brace, peek_whitespace, read_until_char, read_until_closing_paren, read_until_closing_square_brace, IsWhitespace, }, - value::Value, - value::{Number, SassMap}, + value::{Number, SassMap, Value}, Token, }; -use super::Parser; +use super::super::Parser; impl<'a> Parser<'a> { - pub(super) fn parse_value(&mut self) -> SassResult> { + pub(crate) fn parse_value(&mut self) -> SassResult> { self.whitespace(); let span = match self.toks.peek() { Some(Token { pos, .. }) => *pos, @@ -142,7 +141,7 @@ impl<'a> Parser<'a> { }) } - pub(super) fn parse_value_from_vec(&mut self, toks: Vec) -> SassResult> { + pub(crate) fn parse_value_from_vec(&mut self, toks: Vec) -> SassResult> { Parser { toks: &mut toks.into_iter().peekmore(), map: self.map,