IsIncomplete reports whether a Parser error could have been avoided with extra input bytes. For example, if an io.EOF was encountered while there was an unclosed quote or parenthesis.
Given this godoc, it seems like it should work with all parse APIs, like Parse or Words, but it does not. For example, see https://go.dev/play/p/DxfQ8ZlBFuF.
We should either make it work everyhwere, or document its limitation. Ideally the former.
Given this godoc, it seems like it should work with all parse APIs, like
Parse
orWords
, but it does not. For example, see https://go.dev/play/p/DxfQ8ZlBFuF.We should either make it work everyhwere, or document its limitation. Ideally the former.