render post expr blocks better (#20871)

* render post expr blocks

* remove pointless diff

* fix PR split mistake
This commit is contained in:
metagn
2022-11-22 22:40:05 +03:00
committed by GitHub
parent 09b7f90475
commit 5adfaa2a92
2 changed files with 93 additions and 23 deletions

View File

@@ -271,5 +271,56 @@ func fn2(): int =
## comment
result = 1"""
block: # block calls
let a = deb:
foo(a, b, (c, d)):
e
f
do: g
of h: i
elif j: k
except m: n
do () -> u: v
finally: o
a + b:
c
d
do:
e
f
else: g
*a: b
do: c
doAssert a == """foo(a, b, (c, d)):
e
f
do:
g
of h:
i
elif j:
k
except m:
n
do -> u:
v
finally:
o
a + b:
c
d
do:
e
f
else:
g
*a:
b
do:
c"""
static: main()
main()