Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
14
Task/Comments/Nim/comments.nim
Normal file
14
Task/Comments/Nim/comments.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Nim supports only single-line comments
|
||||
|
||||
var x = 0 ## Documentation comments start with double hash characters.
|
||||
|
||||
var y = 0 ## Comments are a proper part of the syntax and are indentation sensitive.
|
||||
## If the next line only consists of a comment piece, it must be aligned
|
||||
## either to the preceding one (documentation generator would merge these lines)
|
||||
## or to the code block (starting a new comment piece).
|
||||
|
||||
# any misaligned comment line (like this one) would trigger an "invalid indentation" error
|
||||
|
||||
var z = 0 ## Alternatively you can end the preceding comment piece with a backslash \
|
||||
## to reset alignment to any column you like.
|
||||
## See also http://nim-code.org/tut1.html#comments
|
||||
Loading…
Add table
Add a link
Reference in a new issue