This also happens with "a]" and "a}", but does not occur when using 'ParseString()', only when using "ParseStream()"
Can be mitigated by simply creating a token for ")" or other closing brackets.
Edit: actually, any symbol after a TokenString causes a panic.
How to reproduce:
main.go
test.txt
This also happens with "a]" and "a}", but does not occur when using 'ParseString()', only when using "ParseStream()" Can be mitigated by simply creating a token for ")" or other closing brackets. Edit: actually, any symbol after a TokenString causes a panic.