Skip to content

Instantly share code, notes, and snippets.

@dangerp
Created April 27, 2016 19:42
Show Gist options
  • Save dangerp/6fe9a5f300979ba3b5244377a93ac44f to your computer and use it in GitHub Desktop.
Save dangerp/6fe9a5f300979ba3b5244377a93ac44f to your computer and use it in GitHub Desktop.
Failing test for hcl issue with multiline comments
diff --git a/hcl/printer/testdata/comment_standalone.golden b/hcl/printer/testdata/comment_standalone.golden
index 3236d9e..9555ca7 100644
--- a/hcl/printer/testdata/comment_standalone.golden
+++ b/hcl/printer/testdata/comment_standalone.golden
@@ -10,6 +10,8 @@ aligned {
}
# Standalone 3
+# This is a single multiline comment, so there
+# should be no empty lines between comments
numbers = [1, 2] // another line here
diff --git a/hcl/printer/testdata/comment_standalone.input b/hcl/printer/testdata/comment_standalone.input
index 4436cb1..d97a1c6 100644
--- a/hcl/printer/testdata/comment_standalone.input
+++ b/hcl/printer/testdata/comment_standalone.input
@@ -10,6 +10,8 @@ aligned {
}
# Standalone 3
+ # This is a single multiline comment, so there
+ # should be no empty lines between comments
numbers = [1,2] // another line here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment