<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/lex.go
diff options
context:
space:
mode:
Diffstat (limited to 'main/lex.go')
-rw-r--r--main/lex.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/main/lex.go b/main/lex.go
index e82c309..02dd0ee 100644
--- a/main/lex.go
+++ b/main/lex.go
@@ -460,13 +460,9 @@ func lexCommandEnd(l *lexer) stateFunc {
l.emit(TokenEOF)
return nil
}
- if l.accept(";") {
- l.emit(TokenSemicolon)
- return lexCommand
- }
if l.accept("}") {
l.emit(TokenRBrace)
return lexCommandEnd
}
- return l.errorf("Expected ; found something else")
+ return lexCommand
}