If next character was not part of valid token and not whitespace we would end up spinning in the loop indefinitely. Fix by using do..while loop which always skips at least one character. Fixes testcase hangs/73b42cd3b6d05e2ddb5c0fe5888459bc
14 KiB
14 KiB