summaryrefslogtreecommitdiff
path: root/hclwrite/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'hclwrite/format.go')
-rw-r--r--hclwrite/format.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/hclwrite/format.go b/hclwrite/format.go
index be3dce4..c9722dd 100644
--- a/hclwrite/format.go
+++ b/hclwrite/format.go
@@ -455,14 +455,11 @@ func tokenBracketChange(tok *Token) int {
// formatLine represents a single line of source code for formatting purposes,
// splitting its tokens into up to three "cells":
//
-// lead: always present, representing everything up to one of the others
-// assign: if line contains an attribute assignment, represents the tokens
-//
-// starting at (and including) the equals symbol
-//
-// comment: if line contains any non-comment tokens and ends with a
-//
-// single-line comment token, represents the comment.
+// - lead: always present, representing everything up to one of the others
+// - assign: if line contains an attribute assignment, represents the tokens
+// starting at (and including) the equals symbol
+// - comment: if line contains any non-comment tokens and ends with a
+// single-line comment token, represents the comment.
//
// When formatting, the leading spaces of the first tokens in each of these
// cells is adjusted to align vertically their occurences on consecutive