Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/token: relative positions apply before, not after, a token
Maximilian Gaß correctly points out that the cue/format package follows relative positions before printing a token, and he's right. I also confirmed that the token scanner also builds relative positions based on the kind of whitespace it found leading up to each token. While here, fix a typo. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I2eae7f628a4e585e966e029d9d78c7fe3be89539 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1186143 Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information