diff options
Diffstat (limited to 'tests/parser/tmultiline_comments.nim')
-rw-r--r-- | tests/parser/tmultiline_comments.nim | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/parser/tmultiline_comments.nim b/tests/parser/tmultiline_comments.nim new file mode 100644 index 000000000..72832479d --- /dev/null +++ b/tests/parser/tmultiline_comments.nim @@ -0,0 +1,34 @@ +discard """ + output: '''3''' +""" + +proc main* = + ##[Mutltie akdlsf comment with #[nesting]. + Yay, that is so cool. + ]## + echo "foo bar" + for s in ["one", "two", #["three",]# "four"]: + echo s + +var foo #[ Test the new inline comments ]#: int = 3 +##[ A +novel documentation comment +#[Nesting works to some extend] +##[ Nested doc comment! ]## +]# +]## +echo $foo + + #[Comment here. + Multiple lines + are not a problem.]# + + #[ #[ Multiline comment in already + commented out code. ]# + proc p[T](x: T) = discard + ]# + +proc bar = + ##[Long documentation comment + here. + ]## |