aboutsummaryrefslogtreecommitdiff
path: root/neb/lexer.py
diff options
context:
space:
mode:
authormryouse2022-07-13 22:14:06 +0000
committermryouse2022-07-13 22:14:06 +0000
commit7ec7bf0a7e1c6c7bf6889c9a3d15413b9eba76ea (patch)
treed084b7479f044dc64453e34b5222a7647ea82649 /neb/lexer.py
parentf2ed3ec7aaebb77b2440c3f5e9f2a6c8b098fc2b (diff)
change in lex: numerics must start with a digit
Diffstat (limited to 'neb/lexer.py')
-rw-r--r--neb/lexer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/neb/lexer.py b/neb/lexer.py
index 6962b5e..913a029 100644
--- a/neb/lexer.py
+++ b/neb/lexer.py
@@ -56,7 +56,8 @@ def lex(data):
elif char == ":":
tokens.append(Token(TokenType.COLON, ":", None, line))
# numbers
- elif char in DIGITS or char == ".":
+ #elif char in DIGITS or char == ".":
+ elif char in DIGITS:
tok, length = get_number(data[current:], line)
tokens.append(tok)
current += length