summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-17 21:29:25 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-17 21:29:25 +0100
commit2c2ab6884c1055dedc9dbafbeeb492fecf251ea8 (patch)
treec10635c49b33469b0731a597db55f71ac3b8434e /tests/parser
parentb79a8d60259a5837fa6bf34724b1a4e8e2e946bc (diff)
downloadNim-2c2ab6884c1055dedc9dbafbeeb492fecf251ea8.tar.gz
fixes strutils.unescape; refs #3634
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/tmultiline_comments.nim18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/parser/tmultiline_comments.nim b/tests/parser/tmultiline_comments.nim
new file mode 100644
index 000000000..16abc7c3f
--- /dev/null
+++ b/tests/parser/tmultiline_comments.nim
@@ -0,0 +1,18 @@
+discard """
+  output: '''3'''
+"""
+
+proc main* =
+  ##[Mutltie akdlsf comment with #[nesting].
+  Yay, that is so cool.
+  ]##
+  echo "foo bar"
+
+var foo #[ Test the new inline comments ]#: int = 3
+##[ A
+novel documentation comment
+#[Nesting works to some extend]
+##[ Nested doc comment! ]##
+]#
+]##
+echo $foo