Skip to content

Commit

Permalink
v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Feb 26, 2024
1 parent 63f5f22 commit bafe069
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 6 additions & 8 deletions docs/src/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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,
)
```

Expand Down
2 changes: 1 addition & 1 deletion nph.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.4.1"
version = "0.5"
author = "Jacek Sieka"
description = "Nim code formatter"
license = "MIT"
Expand Down

0 comments on commit bafe069

Please sign in to comment.