scanner: fix peekNext

This commit is contained in:
Luna 2019-06-01 17:12:00 -03:00
parent 27b04e1612
commit 9d1d253c94
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ pub const Scanner = struct {
fn peekNext(self: *Scanner) u8 {
if (self.isAtEnd()) return 0;
return self.source[self.current + 1];
return self.source[self.current - 1];
}
fn skipWhitespace(self: *Scanner) void {