diff --git a/crates/lang/src/parser.rs b/crates/lang/src/parser.rs index 0e0560a2..c456ec6c 100644 --- a/crates/lang/src/parser.rs +++ b/crates/lang/src/parser.rs @@ -15,6 +15,7 @@ use error::ParseError; use extra::ModuleExtra; use token::Token; +#[allow(dead_code)] enum DefinitionOrExtra { Definition(Box), ModuleComment(Span), diff --git a/crates/lang/src/parser/token.rs b/crates/lang/src/parser/token.rs index 24134528..4a382980 100644 --- a/crates/lang/src/parser/token.rs +++ b/crates/lang/src/parser/token.rs @@ -50,10 +50,10 @@ pub enum Token { RArrow, // '->' DotDot, // '..' EndOfFile, - // Extra - CommentNormal, - CommentDoc, - CommentModule, + // Docs/Extra + Comment, + DocComment, + ModuleComment, EmptyLine, // Keywords (alphabetically): As, @@ -124,9 +124,9 @@ impl fmt::Display for Token { Token::RArrow => "->", Token::DotDot => "..", Token::EndOfFile => "EOF", - Token::CommentNormal => "//", - Token::CommentDoc => "///", - Token::CommentModule => "////", + Token::Comment => "//", + Token::DocComment => "///", + Token::ModuleComment => "////", Token::EmptyLine => "EMPTYLINE", Token::As => "as", Token::Assert => "assert", diff --git a/examples/sample/src/sample/mint.ak b/examples/sample/src/sample/mint.ak index 71238e01..fc5182b7 100644 --- a/examples/sample/src/sample/mint.ak +++ b/examples/sample/src/sample/mint.ak @@ -2,9 +2,6 @@ use sample/context pub type Mint { currency_symbol: ByteArray, - thing: Int, - thing: Int, - thing: Int, } pub type ScriptContext =