Removed unnecessary old code from the lexer

This commit is contained in:
Mattia Giambirtone 2023-02-08 17:55:44 +01:00
parent 81e10ae1ea
commit c69daba89a
1 changed files with 0 additions and 4 deletions

View File

@ -523,10 +523,6 @@ proc parseNumber(self: Lexer) =
not self.done():
discard self.step()
self.createToken(kind)
if kind == Binary:
# To make our life easier, we pad the binary number in here already
while (self.tokens[^1].lexeme.len() - 2) mod 8 != 0:
self.tokens[^1].lexeme = "0b" & "0" & self.tokens[^1].lexeme[2..^1]
proc parseBackticks(self: Lexer) =