mirror of
https://github.com/anoma/juvix.git
synced 2024-12-03 09:41:10 +03:00
b7b0e1039e
- Closes #2162 This pr improves formatting of source files with comments. The concrete ast now stores location information of almost all keywords. We do not store location information of parentheses. Comments will be pushed out of parentheses by the formatter. E.g. ``` ( -- comment f x) ``` will become ``` -- comment (f x) ``` This only occurs if the comment appears just after the `(`. So the following will be respected ``` (f --comment x) ``` --------- Co-authored-by: Jonathan Cubides <jonathan.cubides@uib.no> |
||
---|---|---|
.. | ||
Bank | ||
Collatz | ||
Fibonacci | ||
Hanoi | ||
HelloWorld | ||
PascalsTriangle | ||
TicTacToe | ||
Tutorial |