EOF -> Eof

This commit is contained in:
Protryon 2021-04-06 12:00:16 -07:00
parent aa4c97c9fd
commit 960f6b2d91
2 changed files with 3 additions and 3 deletions

View File

@ -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> {

View File

@ -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, "|"),