Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heredocs #6

Closed
pearkes opened this issue Aug 21, 2014 · 2 comments
Closed

Heredocs #6

pearkes opened this issue Aug 21, 2014 · 2 comments

Comments

@pearkes
Copy link

pearkes commented Aug 21, 2014

Support heredocs for strings.

mitchellh added a commit that referenced this issue Aug 21, 2014
@mitchellh
Copy link
Contributor

Done:

foo = <<BAR
hello, world
BAR

@brycekahle
Copy link

Does this work for strings within an array too? I'm trying to use it inside a terraform remote-exec provisioner inline array.

apparentlymart added a commit that referenced this issue Sep 9, 2019
These allow the inclusion of arbitrary unicode codepoints (always encoded
as UTF-8) using a hex representation.

\u expects four digits and can thus represent only characters in the basic
multilingual plane.

\U expects eight digits and can thus represent all unicode characters,
at the cost of being extra-verbose.

Since our parser properly accounts for unicode characters (including
combining sequences) it's recommended to include them literally (UTF-8
encoded) in source code, but these sequences are useful for explicitly
representing non-printable characters that could otherwise appear
invisible in source code, such as zero-width modifier characters.

This fixes #6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants