Minor fixes
This commit is contained in:
parent
5d572386a3
commit
73381513f9
|
@ -559,7 +559,7 @@ proc next(self: Lexer) =
|
||||||
return
|
return
|
||||||
elif self.match(" "):
|
elif self.match(" "):
|
||||||
# Whitespaces
|
# Whitespaces
|
||||||
self.spaces += 1
|
inc(self.spaces)
|
||||||
elif self.match("\r"):
|
elif self.match("\r"):
|
||||||
self.error("tabs are not allowed in peon code")
|
self.error("tabs are not allowed in peon code")
|
||||||
elif self.match("\n"):
|
elif self.match("\n"):
|
||||||
|
@ -579,7 +579,7 @@ proc next(self: Lexer) =
|
||||||
self.parseString(self.peek(-1), mode)
|
self.parseString(self.peek(-1), mode)
|
||||||
elif self.peek().isDigit():
|
elif self.peek().isDigit():
|
||||||
discard self.step() # Needed because parseNumber reads the next
|
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
|
# Number literal
|
||||||
self.parseNumber()
|
self.parseNumber()
|
||||||
elif self.peek().isAlphaNumeric() and self.check(["\"", "'"], 1):
|
elif self.peek().isAlphaNumeric() and self.check(["\"", "'"], 1):
|
||||||
|
|
Loading…
Reference in New Issue