-
Notifications
You must be signed in to change notification settings - Fork 17
Comparing changes
Open a pull request
base repository: arnetheduck/nph
base: v0.3
head repository: arnetheduck/nph
compare: v0.4
- 15 commits
- 32 files changed
- 2 contributors
Commits on Jan 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8c21825 - Browse repository at this point
Copy the full SHA 8c21825View commit details
Commits on Jan 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 85a5ce5 - Browse repository at this point
Copy the full SHA 85a5ce5View commit details
Commits on Jan 26, 2024
-
add Nim 2.0.2 to supported versions (#30)
* add Nim 2.0.2 to supported versions * updated nimble release name * one more
Configuration menu - View commit details
-
Copy full SHA for 3dc181b - Browse repository at this point
Copy the full SHA 3dc181bView commit details -
Spaces around
..
and..<
(#31)Although NEP1 suggests not having spaces around these infix operators, this creates an exception to the normal infix spacing rules. In spite of this recommendation, lots of code out there maintains spaces around the operators which makes decision based on "existing practice" hard. Adding to the complexity is in order to not break the AST, the code must take care to remove the spaces only in cases where the infix is not followed by another operator - this means that we _sometimes_ will put spaces around these infixes and sometimes not, again leading to irregularity. Since there's no consensus in existing code, the rule is irregular and causes implementation complexity, this PR removes the exception and formats `..` and `..<` with spaces.
Configuration menu - View commit details
-
Copy full SHA for 6065e70 - Browse repository at this point
Copy the full SHA 6065e70View commit details -
Chain long dot-calls (fixes #28) (#32)
When multiple dot-separated calls don't fit on a single line, use a long format similar to lists to put each on a new line.
Configuration menu - View commit details
-
Copy full SHA for a793758 - Browse repository at this point
Copy the full SHA a793758View commit details -
Keep section beginning on same line even if entry is long (#33)
The section "short form" was restored to its 0.2 format to allow the before-`=` part of the section to stay on the same line as the section keyword. This reduces the overall indent of the (long) RHS which gives it better chances to be formatted nicely.
Configuration menu - View commit details
-
Copy full SHA for 5bed5cf - Browse repository at this point
Copy the full SHA 5bed5cfView commit details
Commits on Feb 2, 2024
-
Treat
.
as part of a simple expression (#34)Treating `.` as complex leads to complex formatting where it is not desired, such as module-prefixing and trivial field accesses - this plays well with omitting `()` in trivial calls as well. * ensure long if-expressions are line-broken correctly * render first condition of `of` on the same line * document what is simple
Configuration menu - View commit details
-
Copy full SHA for 503436b - Browse repository at this point
Copy the full SHA 503436bView commit details -
Don't stack single-dotexpr-calls (#35)
There should be at least two calls for stacking mode to kick in
Configuration menu - View commit details
-
Copy full SHA for 1f4c491 - Browse repository at this point
Copy the full SHA 1f4c491View commit details -
Use proc-renderer for lambdas also (fixes parameter format as well)
Configuration menu - View commit details
-
Copy full SHA for dd146ed - Browse repository at this point
Copy the full SHA dd146edView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc5e13c - Browse repository at this point
Copy the full SHA dc5e13cView commit details
Commits on Feb 4, 2024
-
Update README.md to Add NeoVim intergation (#38)
Update README.md to include NeoVim integration using neoformat plugin. + sbdchd/neoformat#491
Configuration menu - View commit details
-
Copy full SHA for af99463 - Browse repository at this point
Copy the full SHA af99463View commit details -
tighten rhs expression whitespace and indent (#39)
When rendering the right-hand expression of a keyword like `return` or an assignment, sometimes we would add a newline and indent. This PR avoids such extra indent/newlines by allowing partial expressions such as function calls to continue on the same line like so: ```nim let myvariable = functioncall( arg0, arg1, ... ) ``` This saves significant amounts of space as we avoid the extra indent that previously would apply to the arguments in this case.
Configuration menu - View commit details
-
Copy full SHA for 13a4822 - Browse repository at this point
Copy the full SHA 13a4822View commit details -
fix do in call in dotexpr, comment in tuple, long files and lines (#40)
Includes several random doc comment fixes for free!
Configuration menu - View commit details
-
Copy full SHA for 255dac4 - Browse repository at this point
Copy the full SHA 255dac4View commit details
Commits on Feb 5, 2024
-
Prefer infix operator at end of line (#41)
If the second argument of an infix doesn't fit on the current line but fits on a new line, prefer a newline before the argument over partially formatting it on the same line as the operator. This gives a preference to having the operator alone on the end of the line and nicely lines up parenthesized expressions in general.
Configuration menu - View commit details
-
Copy full SHA for 3544132 - Browse repository at this point
Copy the full SHA 3544132View commit details -
Configuration menu - View commit details
-
Copy full SHA for 537f1ce - Browse repository at this point
Copy the full SHA 537f1ceView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.3...v0.4