https://github.com/F1uctus/Axion/blob/a4e33355a629f7ea6c3ebc9428a596b23f94355b/Axion.Core/Processing/Syntactic/Expression.cs#L424-L429
There is a check, that for keyword is not placed at new line, to resolve that code:
Axion:
<expression>
for x in y
code()
not to be parsed as for comprehension (<expression> for x in y).
But also, for is allowed to be placed in that context:
(float(f)
for a in l
...
for f in e
unless e.length == 0)
and, because of newline check, we must write it like:
(float(f) for a in l
...
for f in e
unless e.length == 0)
so, for allowed to be placed on new line if it's invoked by function, that parses
collection expression embraced in (), {} or [].
https://github.com/F1uctus/Axion/blob/a4e33355a629f7ea6c3ebc9428a596b23f94355b/Axion.Core/Processing/Syntactic/Expression.cs#L424-L429
There is a check, that
forkeyword is not placed at new line, to resolve that code:Axion:
not to be parsed as
for comprehension(<expression> for x in y).But also,
foris allowed to be placed in that context:and, because of
newlinecheck, we must write it like:so,
forallowed to be placed on new line if it's invoked by function, that parsescollection expression embraced in
(),{}or[].