Skip to content

Commit

Permalink
Log any error in UnreadRune()
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Feb 4, 2019
1 parent ecb6d90 commit 0a0b9a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/vm/parser/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ func (l *Lexer) next() rune {
// backup indicates that we haven't yet dealt with the next rune. Use when
// terminating tokens on unknown runes.
func (l *Lexer) backup() {
l.input.UnreadRune()
if err := l.input.UnreadRune(); err != nil {
glog.Info(err)
}
l.width = 0
}

Expand Down

0 comments on commit 0a0b9a4

Please sign in to comment.