hashicorp / hashicorp/hcl

The ability to split a long string over multiple lines

Open
#211 36 comments 306 reactions 0 assignees View on GitHub
v1
Dominant language
Go
Stars
5.8k
Forks
657
Avg merge
20h 36m
Merged PRs (30d)
6

Description

When using a really long string like `https://mystorageaccount.blob.core.windows.net/system/Microsoft.Compute/Images/windows-2016-datacenter/packer-osDisk.8c22742f-d22d-4f1a-babd-7712381c413e.vhd`, it forces editors to horizontally scroll. I'd like the ability to split the definition of strings like this over multiple lines. Note that this is different than splitting text over multiple lines with:

```
text = <

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing HCL's existing string syntax and the discussion in this issue, including how the requested multiline form should differ from heredocs. Define the accepted syntax and its parsing and formatting behavior before identifying the relevant implementation and tests; done means the syntax is specified and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.