From 9926eaf00193efbfe340f3461f5241c92b6aac6a Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 16 Feb 2024 09:56:54 +0000 Subject: [PATCH] correct comment formatting --- hclwrite/format.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/hclwrite/format.go b/hclwrite/format.go index be3dce47..c9722dd2 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