From 48bbe83c5e2fae2404112e514e4080cec2262368 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 14 Jul 2015 12:49:39 -0400 Subject: [PATCH] fix indenting :) --- lalrpop/src/lr1/ascent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lalrpop/src/lr1/ascent.rs b/lalrpop/src/lr1/ascent.rs index 84a6521..c3be427 100644 --- a/lalrpop/src/lr1/ascent.rs +++ b/lalrpop/src/lr1/ascent.rs @@ -105,7 +105,7 @@ impl<'ascent,'grammar,W:Write> RecursiveAscent<'ascent,'grammar,W> { let terminal_type = self.types.terminal_enum_type(); rust!(self.out, "#[allow(non_snake_case)]"); rust!(self.out, "pub fn parse_{}<", self.user_start_symbol); - rust!(self.out, " {}TOKENS: IntoIterator,", self.prefix, terminal_type); + rust!(self.out, " {}TOKENS: IntoIterator,", self.prefix, terminal_type); rust!(self.out, ">("); rust!(self.out, "{}tokens: {}TOKENS,", self.prefix, self.prefix); rust!(self.out, ") -> Result<(Option<{}>, {}), Option<{}>> {{", @@ -148,7 +148,7 @@ impl<'ascent,'grammar,W:Write> RecursiveAscent<'ascent,'grammar,W> { let mut fallthrough = false; rust!(self.out, "pub fn {}state{}<", self.prefix, this_index.0); - rust!(self.out, " {}TOKENS: Iterator,", self.prefix, terminal_type); + rust!(self.out, " {}TOKENS: Iterator,", self.prefix, terminal_type); rust!(self.out, ">("); rust!(self.out, "mut {}lookahead: Option<{}>,", self.prefix, terminal_type); rust!(self.out, "{}tokens: &mut {}TOKENS,", self.prefix, self.prefix);