scanner: remove debug print

This commit is contained in:
Luna 2019-06-01 20:34:09 -03:00
parent e1d0e3ec0b
commit 2736bee8d8

View file

@ -231,10 +231,7 @@ pub const Scanner = struct {
self.skipWhitespace();
self.start = self.current;
if (self.isAtEnd()) {
std.debug.warn("got at end\n");
return self.makeToken(TokenType.EOF);
}
if (self.isAtEnd()) return self.makeToken(TokenType.EOF);
var c = self.advance();
if (isAlpha(c)) return self.doIdentifier();