summaryrefslogtreecommitdiff
path: root/src/parse/parser.rs
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2022-02-23 13:57:15 +0100
committerMartin Haug <mhaug@live.de>2022-02-23 14:50:38 +0100
commit4c8634c600ad0bba03ccdf884b32f234ecbff30c (patch)
treebef1e56ebe6533accc5a1e69ed7863d72b336789 /src/parse/parser.rs
parent20ac96f27a2e06b985abc1c95049c32c2b88ef5d (diff)
Early stop for falling indents.
Fix code edits and at_start handling. Also fix dedenting for multi-byte chars in raw blocks.
Diffstat (limited to 'src/parse/parser.rs')
-rw-r--r--src/parse/parser.rs7
1 files changed, 0 insertions, 7 deletions
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<Green>, 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<Green>, bool)> {
self.terminated().then(|| (self.children, self.tokens.terminated()))
}