summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Simko <radek.simko@gmail.com>2024-02-16 09:56:54 +0000
committerRadek Simko <radek.simko@gmail.com>2024-02-16 09:56:54 +0000
commit9926eaf00193efbfe340f3461f5241c92b6aac6a (patch)
treebc2c8c8ab5bfd54086920fc9e82cd7570de8eb59
parent8dddc351e4d2782b3a62844f3c3f87d72f9f5e13 (diff)
correct comment formatting
-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