I get that, but just look at this part of your code
couldnt you have done:
if not match then return end
rather than having another indent? And it just continues… like for the rest of the screenshot i put on my last post.
And what difference does it make? Your can still make it so it returns a token at the end, while making it with my approach and why would it matter if its in a while loop, would it be different if it was in a for loop or smth?
What part of my response are you talking about? You havent quoted anything?