aboutsummaryrefslogtreecommitdiff
path: root/lex.go
diff options
context:
space:
mode:
Diffstat (limited to 'lex.go')
-rw-r--r--lex.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lex.go b/lex.go
index d4a4e30..6873278 100644
--- a/lex.go
+++ b/lex.go
@@ -274,6 +274,7 @@ func readToken(br *bufio.Reader, line *int) (token, error) {
return lexString(br, *line)
case '#':
// Discard comments.
+ *line++
return token{}, lexComment(br)
default:
return token{}, unexpectedToken