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

Implement indented here documents <<~EOF like Perl does #1797

Open
EugenKon opened this issue Aug 24, 2023 · 0 comments
Open

Implement indented here documents <<~EOF like Perl does #1797

EugenKon opened this issue Aug 24, 2023 · 0 comments

Comments

@EugenKon
Copy link

Expected behavior

https://perldoc.perl.org/perlop#Indented-Here-docs

      template {
        data = <<~CONF
        F2
        CONF
        destination = "custom/walk-inside.com.conf"
      }

Should generate

F2

Actual behavior

It generates

        F2

Leading spaces are awkward. I could write without them:

      template {
        data = <<CONF
F2
CONF
        destination = "custom/walk-inside.com.conf"
      }

But in this case code folding feature is broken in many text editors, eg. Visual Studio, Sublime Text.

Implementing this feature will allow to use code folding and generate files without leading spaces.

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

1 participant