Skip to content

Commit

Permalink
that was a easy fix.....
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed May 20, 2023
1 parent 4bcdf59 commit 3c153d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lexer/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func (l *Lexer) NextToken() token.Token {
if isLetter(l.ch) {
tok.Literal = l.readIdentifier()
tok.Type = token.LookupIdentifier(tok.Literal)
tok.Line = l.line

return tok
} else if isDigit(l.ch) {
Expand Down

0 comments on commit 3c153d1

Please sign in to comment.