Skip to content

Commit 4f39b1b

Browse files
committed
v0.7.0
See change log
1 parent 4105453 commit 4f39b1b

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
# Changelog
22

3-
# Unreleased
3+
# 0.7.0
4+
5+
Formatting updates:
6+
7+
* Indent chained/dotted calls that start on a new line to make expression
8+
boundaries clear. Example:
9+
```nim
10+
# old
11+
aaaa
12+
.f()
13+
.g()
14+
15+
# new
16+
aaaa
17+
.f()
18+
.g()
19+
```
20+
* Keep lightweight prefix calls (e.g., `@`, `%`, `?`, `not`) on the same
21+
line as the assignment/opening when possible so lists and prefixed
22+
constructs don’t force an extra indent.
23+
```nim
24+
# before
25+
let f2 =
26+
?call(
27+
...
28+
)
29+
30+
# after
31+
let f2 = ?call(
32+
...
33+
)
34+
```
35+
* Put triple-string literals on same line if it fits (f12c27c)
36+
* Make `[]` operator simple (0145a67)
37+
* Preserve block comments followed by single-line comments (bca5b70)
438

539
New features:
640

nph.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.6.2"
3+
version = "0.7.0"
44
author = "Jacek Sieka"
55
description = "Nim code formatter"
66
license = "MIT"

0 commit comments

Comments
 (0)