aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lexer.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lexer.py b/lexer.py
index c2460eb..1f963cc 100644
--- a/lexer.py
+++ b/lexer.py
@@ -46,6 +46,11 @@ def lex(data):
tokens = []
while current < end:
char = data[current]
+ if char == ";":
+ while char != "\n" and current < end:
+ current += 1
+ char = data[current]
+ continue
if char == "\n":
line += 1
if char in WHITESPACE: