Minimalistic Odin formatter.
- Indents lines with 1 tab per scope level
- Does not indent
whenblocks - Leaves the contents like multi line strings and multi line comments untouched
- Adds one indent level to parameters if they were broken up into multiple lines. example:
input:
fmt.printfln("%v %v %v",
a,
3,
5
)output:
fmt.printfln("%v %v %v",
a,
3,
5
)odin build . -out:lucyfmt./lucyfmt file.odin # print to stdout
./lucyfmt -w file.odin # format in-place
cat file.odin | ./lucyfmt # read from stdin