-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/format: prevent vertical tabs from causing extra indentation
nextNeedsFormfeed wasn't aware of parentheses, indexes, and selectors, meaning that if they were used on a multi-line and indented expression, we would not notice we needed to skip the vertical tab. In many cases the vertical tab was harmless, but in this case, it caused tabwriter to further indent the inner list elements. Updates #2496. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Iba21684c6e7f794e4e2d5ff007b9d2ba8d75d491 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1196135 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Aram Hăvărneanu <aram@cue.works>
- Loading branch information
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters