Closed maxim-h closed 1 month ago
This is a bug, thank you for reporting it.
One would expect the newlines to be treated the same way as spaces and just separate the tokens.
That's not right though, the lexer does not emit token for spaces, they have no meaning or value in the tree downstream. The lexer does emit new lines though.
Ah, true. Thanks for the explanation! I guess I was only thinking about newlines within a single statement. Of course you still need newlines to separate multiple statements.
Hi! Thanks for the cool project.
When I tried using
vapour
, first thing I noticed is that I can't define a type in a one-liner:Transpiling produces the following error:
It seems to be the closing bracket that breaks things, because this works:
One would expect the newlines to be treated the same way as spaces and just separate the tokens.
Is that intended or is it just a bug?