hcl/hcl
Florian Forster b07f6fa7a2 printer: Simplify the formatting of single-line lists.
This change splits out the formatting of simple single-line lists. A list
is considered "simple" if all of its elements are on one line, all
elements are literals (except heredoc) and there are no line comments.
As an exception, a heredoc string is allowed when it is the only element
in the list.

This fixes an issue with a single-line list with one element and a line
comment. The formatter used to pull the closing bracket on the same line
(after the comment), causing parse errors.
2018-04-04 19:34:59 +02:00
..
ast Fix broken formatting directives (#242) 2018-03-20 14:36:33 -04:00
fmtcmd Fix broken formatting directives (#242) 2018-03-20 14:36:33 -04:00
parser Fix handling of line comments in multi-line statements. 2018-04-03 19:39:12 +02:00
printer printer: Simplify the formatting of single-line lists. 2018-04-04 19:34:59 +02:00
scanner scanner: Fix detection of zero-length heredoc anchor. 2018-04-04 17:09:20 +02:00
strconv Support multiline string literals in HCL only in HIL fragments 2016-11-24 22:59:50 +03:00
test-fixtures hcl/parser: Support lists of objects 2016-07-06 13:01:52 -05:00
token hcl: don't escape ANYTHING in ${}, let lower layer handle it 2016-09-09 19:56:15 -06:00