f5480db646
This commit adds support for removing a hanging indent from HEREDOC token contents if the marker is prefixed with <<-. For example, given the HCL definition: my_long_var_name = <<-EOF { "key": "value" } EOF The value of the HEREDOC will be: { "key": "value" } This is useful for use cases where indentation or leading whitespace is important. The rule applied is that the prefix on the terminating marker will be removed from each each line in the HEREDOC, providing all the lines have that prefix (i.e. every line is at least as indented as the terminating marker, and using the same mechanism of tabs vs spaces).
5 lines
47 B
HCL
5 lines
47 B
HCL
foo = <<-EOF
|
|
bar
|
|
baz
|
|
EOF
|