Skip to content

Commit

Permalink
Merge pull request #183 from Thunno/improve-while-loops
Browse files Browse the repository at this point in the history
Update lexer.py
  • Loading branch information
nayakrujul authored Aug 16, 2023
2 parents 9f464a5 + decb80b commit 9252e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thunno2/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def tokenise(code, expected_end=""):
index += i + 1
r2 = []
try:
if code[index] == ";":
if code[index] in (";", "}", ":"):
i, r2 = tokenise(code[index + 1 :], expected_end=")")
index += i
except:
Expand Down

0 comments on commit 9252e3b

Please sign in to comment.