From 960f6b2d91d512bf78d551d1775b941ca6aac157 Mon Sep 17 00:00:00 2001 From: Protryon Date: Tue, 6 Apr 2021 12:00:16 -0700 Subject: [PATCH] EOF -> Eof --- parser/src/parser/context.rs | 2 +- parser/src/tokenizer/token.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/src/parser/context.rs b/parser/src/parser/context.rs index a221df6034..1a7c010819 100644 --- a/parser/src/parser/context.rs +++ b/parser/src/parser/context.rs @@ -79,7 +79,7 @@ impl ParserContext { .last() .map(|x| &x.token) .map(Cow::Borrowed) - .unwrap_or_else(|| Cow::Owned(Token::EOF)) + .unwrap_or_else(|| Cow::Owned(Token::Eof)) } // pub fn peek_oneof(&self, token: &[Token]) -> SyntaxResult<&SpannedToken> { diff --git a/parser/src/tokenizer/token.rs b/parser/src/tokenizer/token.rs index e56342ad94..f40098e162 100644 --- a/parser/src/tokenizer/token.rs +++ b/parser/src/tokenizer/token.rs @@ -148,7 +148,7 @@ pub enum Token { // AndEq, // Meta Tokens - EOF, + Eof, } /// Represents all valid Leo keyword tokens. @@ -292,7 +292,7 @@ impl fmt::Display for Token { Return => write!(f, "return"), Static => write!(f, "static"), String => write!(f, "string"), - EOF => write!(f, ""), + Eof => write!(f, ""), // BitAnd => write!(f, "&"), // BitAndEq => write!(f, "&="), // BitOr => write!(f, "|"),