Minor fixes
This commit is contained in:
parent
5d572386a3
commit
73381513f9
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue