Let non-ASCII whitespace terminate line comments
Avoid infinite loops on invalid input

These (as the complete input) would never terminate:

* `)`
* `|`
* `\`