June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -1,14 +1,15 @@
# Nim supports only single-line comments
# Nim supports 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).
var y = 0 ## Documentation comments are a proper part of the syntax (they're not discarded by parser, and a real part of AST).
# any misaligned comment line (like this one) would trigger an "invalid indentation" error
#[
There are also multi-line comments
Everything inside of #[]# is commented.
]#
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
# You can also discard multiline statements:
discard """This can be considered as a "comment" too
This is multi-line"""