diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a94317..9949ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +# 0.5 + +* allow function calls to partially fill line in assignments +* trailing commas also in simple multi-line lists +* polish + # 0.4.1 * fix comment-eating bug in infix diff --git a/docs/src/style.md b/docs/src/style.md index 9ddc173..2226c3a 100644 --- a/docs/src/style.md +++ b/docs/src/style.md @@ -78,9 +78,8 @@ name takes up space import dir/[module1, module2, module3, module4] -const mylongvariablename = [ - 100000000, 200000000, 300000000 -] +const mylongvariablename = + [100000000, 200000000, 300000000] proc function( param0: int, param1: int, param2: int @@ -98,19 +97,18 @@ import dir/[module1, module2, module3], dir2/[ module4, module5, module6, module7, - module8, module9 + module8, module9, ] let myVariable = [ functionCall(a, b, c), - functionCall(a, b, c, d) + functionCall(a, b, c, d), ] functionCall( functionCall(a, b, c), functionCall(a, b, c, d), ) - ``` ```admonish info "Extra separator" @@ -123,12 +121,12 @@ For simple values, we use a compact style that fits several items per row: ```nim const values = [ 10000000, 2000000000, 3000000000, - 40000000, 5000000000 + 40000000, 5000000000, ] functionCall( 10000000, 2000000000, 3000000000, - 40000000, 5000000000 + 40000000, 5000000000, ) ``` diff --git a/nph.nimble b/nph.nimble index 1ed6bbf..75a5d70 100644 --- a/nph.nimble +++ b/nph.nimble @@ -1,6 +1,6 @@ # Package -version = "0.4.1" +version = "0.5" author = "Jacek Sieka" description = "Nim code formatter" license = "MIT"