From 4c8634c600ad0bba03ccdf884b32f234ecbff30c Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Wed, 23 Feb 2022 13:57:15 +0100 Subject: Early stop for falling indents. Fix code edits and at_start handling. Also fix dedenting for multi-byte chars in raw blocks. --- src/parse/parser.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/parse/parser.rs') diff --git a/src/parse/parser.rs b/src/parse/parser.rs index d9cc0e31..8588e586 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -64,13 +64,6 @@ impl<'s> Parser<'s> { /// End the parsing process and return multiple children and whether the /// last token was terminated. pub fn consume(self) -> Option<(Vec, bool)> { - (self.eof() && self.terminated()) - .then(|| (self.children, self.tokens.terminated())) - } - - /// End the parsing process and return multiple children and whether the - /// last token was terminated, even if there remains stuff in the string. - pub fn consume_open_ended(self) -> Option<(Vec, bool)> { self.terminated().then(|| (self.children, self.tokens.terminated())) } -- cgit v1.2.3