issues
search
arnetheduck
/
nph
An opinionated code formatter for Nim
Other
77
stars
12
forks
source link
style updates
#9
Closed
arnetheduck
closed
6 months ago
arnetheduck
commented
6 months ago
more compact import/type/var/let/const/etc sections when subnodes are simple
fix infix line breaks
single indent in proc forward declarations and typedefs - double when there's a body
if/elif/except/while condition double indent when needed
comma at end of one-per-line lists when permissible
helps git merges when adding to the list
literals are considered "simple" for list formatting
empty brackets are not linebroken