Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/format: preserve comments associated with ellipsis
When simplification is enabled, the current implementation prints a "dummy" ellipsis during formatting, instead of the original ellipsis. This means that comments associated with the original ellipsis are not printed in the formatted CUE. To fix this, we associate the original comments with the dummy ellipsis so they won't get lost. Fixes #3198. Signed-off-by: Noam Dolovich <noam.tzvi.dolovich@gmail.com> Change-Id: Ibebbd97ac768de7a2c0d9855c9ec6c7a497435c8 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195884 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information