4 Commits

Author SHA1 Message Date
Florian Forster
c2326d41d7 Fix handling of line comments in multi-line statements. 2018-04-03 19:39:12 +02:00
Paul Hinze
2eb00dcf94 printer: output EOF newline in formatted hcl
Noticed that the `hclfmt` tool (which uses hcl/printer) was chomping
the trailing newline from config files.

Here we switch to the more conventional newline-at-EOF output.

In the process of changing this, I realized that:

 * The printer_test.go build tag was wrong, so it wasn't running
 * The format() test helper was not exercising Format

So both of those fixes are included here
2016-04-06 09:09:04 -05:00
Mitchell Hashimoto
b24dfd1bb1 hcl/printer: output an equal sign only if we had one originally 2015-11-07 15:13:05 -08:00
Mitchell Hashimoto
d7c35808a8 move hclnew to hcl 2015-11-06 16:04:20 -08:00