cue/scanner: expand checkError to scan past interpolations too
So that we can add test cases with interpolations inside multiline
strings in the next commit.
We adjust two existing test cases so that they don't open
an interpolation without closing it correctly.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ic0d65cabe155b247715e5453392e53656df89184
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1235171
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>