mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Ensure expressions can continue after a multiline block
This commit is contained in:
parent
e03f32ca34
commit
6832ca2a26
@ -49,6 +49,11 @@
|
|||||||
#test(3-4 * 5 < -10, true)
|
#test(3-4 * 5 < -10, true)
|
||||||
#test({ let x; x = 1 + 4*5 >= 21 and { x = "a"; x + "b" == "ab" }; x }, true)
|
#test({ let x; x = 1 + 4*5 >= 21 and { x = "a"; x + "b" == "ab" }; x }, true)
|
||||||
|
|
||||||
|
// With block.
|
||||||
|
#test(if true {
|
||||||
|
1
|
||||||
|
} + 2, 3)
|
||||||
|
|
||||||
// Mathematical identities.
|
// Mathematical identities.
|
||||||
#let nums = (
|
#let nums = (
|
||||||
1, 3.14,
|
1, 3.14,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user