Use dot notation for enum variants
This commit is contained in:
parent
ab783c33ed
commit
117d188194
13 changed files with 162 additions and 154 deletions
|
|
@ -93,9 +93,6 @@ func (l *lexer) next() (token, error) {
|
|||
case '.':
|
||||
return token{kind: tokenDot, lexeme: ".", pos: start}, nil
|
||||
case ':':
|
||||
if l.match(':') {
|
||||
return token{kind: tokenDoubleColon, lexeme: "::", pos: start}, nil
|
||||
}
|
||||
return token{kind: tokenColon, lexeme: ":", pos: start}, nil
|
||||
case ';':
|
||||
return token{kind: tokenSemicolon, lexeme: ";", pos: start}, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue