diff --git a/src/frontend/lexer.nim b/src/frontend/lexer.nim index 550a39a..ea3d580 100644 --- a/src/frontend/lexer.nim +++ b/src/frontend/lexer.nim @@ -559,7 +559,7 @@ proc next(self: Lexer) = return elif self.match(" "): # Whitespaces - self.spaces += 1 + inc(self.spaces) elif self.match("\r"): self.error("tabs are not allowed in peon code") elif self.match("\n"): @@ -579,7 +579,7 @@ proc next(self: Lexer) = self.parseString(self.peek(-1), mode) elif self.peek().isDigit(): discard self.step() # Needed because parseNumber reads the next - # character to tell the base of the number + # character to tell the base of the number # Number literal self.parseNumber() elif self.peek().isAlphaNumeric() and self.check(["\"", "'"], 1):