arnetheduck / nph

An opinionated code formatter for Nim
Other
77 stars 12 forks source link

the trivial expression #21

Closed arnetheduck closed 6 months ago

arnetheduck commented 6 months ago

Trivial if/case expressions gained a same-line mode where they get rendered inline - this helps alleviate some parsing quirks where newlines change the AST node and therefore the rendering (nkIfStmt+nkStmtList vs nkIfExpr)