Open simonmandlik opened 11 months ago
Yes, this is parsed incorrectly.
Unfortunately, Julia allows omitting the terminator (newline or semicolon) between the condition and the consequent, so an expression like if x y end
is syntactically valid. In this case, instead of x
and y
we have 1
and +1 < 2
.
This is from neovim:
and resulting nodes:
Isn't the first one wrong?