aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/fmt/tests/enum_comments_keep.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/fmt/tests/enum_comments_keep.vv')
-rw-r--r--v_windows/v/old/vlib/v/fmt/tests/enum_comments_keep.vv17
1 files changed, 17 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/fmt/tests/enum_comments_keep.vv b/v_windows/v/old/vlib/v/fmt/tests/enum_comments_keep.vv
new file mode 100644
index 0000000..f46208b
--- /dev/null
+++ b/v_windows/v/old/vlib/v/fmt/tests/enum_comments_keep.vv
@@ -0,0 +1,17 @@
+module main
+
+// Top level comment
+enum EnumType {
+ // comment for the enum
+ abc
+ xyz // comment for the enum field
+}
+
+// Another top level comment
+enum PacketType {
+ // Regular data packet
+ data // abc def
+ // xyz
+ // another comment
+ abcd // jklmn
+}