Minor fixes

This commit is contained in:
Mattia Giambirtone 2022-06-14 12:14:58 +02:00
parent 5d572386a3
commit 73381513f9
1 changed files with 2 additions and 2 deletions

View File

@ -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):