diff --git a/lexer/numbers.go b/lexer/numbers.go index a92f405..1e486fe 100644 --- a/lexer/numbers.go +++ b/lexer/numbers.go @@ -36,7 +36,7 @@ func (lexer *LexingOperation) tokenizeNumberBeginning (negative bool) (err error isFloat, amountRead, err = lexer.tokenizeNumber(10) - } else if lexer.char >= '0' && lexer.char <= '8' { + } else if lexer.char >= '0' && lexer.char <= '7' { intNumber, floatNumber, isFloat, amountRead, err = lexer.tokenizeNumber(8) diff --git a/tests/parser/func/main.arf b/tests/parser/func/main.arf index 59499c8..bff967c 100644 --- a/tests/parser/func/main.arf +++ b/tests/parser/func/main.arf @@ -15,15 +15,15 @@ func ro bMethod func ro cBasicPhrases --- - fn 329 983 09 - [fn 329 983 09] + fn 329 983 07 + [fn 329 983 07] [fn 329 983 - 091] + 071] fn [gn 329 983 - 091] 123 + 071] 123 func ro dArgumentTypes --- @@ -74,7 +74,7 @@ func ro fReturnDirection [fn 329 983 - 091] -> thing:Int err + 071] -> thing:Int err func ro gControlFlow ---