summaryrefslogtreecommitdiffstats
path: root/internal/toml-test/tests/valid/comment/everywhere.toml
diff options
context:
space:
mode:
Diffstat (limited to 'internal/toml-test/tests/valid/comment/everywhere.toml')
-rw-r--r--internal/toml-test/tests/valid/comment/everywhere.toml28
1 files changed, 28 insertions, 0 deletions
diff --git a/internal/toml-test/tests/valid/comment/everywhere.toml b/internal/toml-test/tests/valid/comment/everywhere.toml
new file mode 100644
index 0000000..a5da1d7
--- /dev/null
+++ b/internal/toml-test/tests/valid/comment/everywhere.toml
@@ -0,0 +1,28 @@
+# Top comment.
+ # Top comment.
+# Top comment.
+
+# [no-extraneous-groups-please]
+
+[group] # Comment
+answer = 42 # Comment
+# no-extraneous-keys-please = 999
+# Inbetween comment.
+more = [ # Comment
+ # What about multiple # comments?
+ # Can you handle it?
+ #
+ # Evil.
+# Evil.
+ 42, 42, # Comments within arrays are fun.
+ # What about multiple # comments?
+ # Can you handle it?
+ #
+ # Evil.
+# Evil.
+# ] Did I fool you?
+] # Hopefully not.
+
+# Make sure the space between the datetime and "#" isn't lexed.
+dt = 1979-05-27T07:32:12-07:00 # c
+d = 1979-05-27 # Comment