Skip to content

Commit

Permalink
correct comment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Feb 16, 2024
1 parent 8dddc35 commit 9926eaf
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions hclwrite/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9926eaf

Please sign in to comment.