Open Dima-369 opened 1 month ago
I have now removed comment indentation. But now the problem should be that comments inside blocks are not indented with what is inside blocks. E.g:
Put a comment inside a procedure block and reformat. The comment will not be indented. Working on it
Blank lines after optimizing imports and/or reformatting code is now fixed
Here is still one weird case:
Before:
package main
import "core:os"
// oeu
foo :: proc() {
os.exit(1)
}
// foo
main :: proc() {
}
After, the comment to the first proc
under the imports always shifts up:
package main
import "core:os"
// oeu
foo :: proc() {
os.exit(1)
}
// foo
main :: proc() {
}
1. Too many newlines inserted without any import statements (presumably where the imports would be)
reformats to:
2. Comments to a proc are indented incorrectly with too much prefix
results in:
You can try to reformat
/opt/homebrew/Cellar/odin/2024-07/libexec/core/fmt/fmt_os.odin
which ends up like this with all the indentation being off: