extend suffixes from first to last

reverse suffix list in `tokenizer_pseudo_code()` so the order of returned tokens matches input order
This commit is contained in:
Yuval Pinter 2017-05-22 10:56:03 -04:00 committed by GitHub
parent 6c67482f34
commit af3d121ec9

View File

@ -113,7 +113,7 @@ p
else:
tokens.append(substring)
substring = ''
tokens.extend(suffixes)
tokens.extend(reversed(suffixes))
return tokens
p