summary refs log tree commit diff stats
path: root/nimpretty/tests/expected
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-07-02 10:52:46 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-02 10:52:46 +0200
commitc522a455df3817d98c2cd9132668c4eb9fbb0d88 (patch)
treedf69e37ab6c9300ef01cbba4271d21974a55188e /nimpretty/tests/expected
parentcce8a739da1b74f8d85785524a9b4865afcda3e2 (diff)
downloadNim-c522a455df3817d98c2cd9132668c4eb9fbb0d88.tar.gz
[bugfix] nimpretty indents multiline comments correctly (#11607)
Diffstat (limited to 'nimpretty/tests/expected')
-rw-r--r--nimpretty/tests/expected/exhaustive.nim19
1 files changed, 19 insertions, 0 deletions
diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim
index 4d0366afb..4d1b933ef 100644
--- a/nimpretty/tests/expected/exhaustive.nim
+++ b/nimpretty/tests/expected/exhaustive.nim
@@ -663,3 +663,22 @@ type
     key*, val*: TaintedString ## Key and value pair; the key is the option
                               ## or the argument, and the value is not "" if
                               ## the option was given a value
+
+block:
+  var t = 3
+
+## This MUST be a multiline comment,
+## single line comment would be ok.
+block:
+  var x = 7
+
+
+block:
+  var t = 3
+  ## another
+  ## multi
+
+## This MUST be a multiline comment,
+## single line comment would be ok.
+block:
+  var x = 7