mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-22 03:01:31 +03:00
1276f47cf6
The `if then else` syntax expects a block for the `then` and `else` parts. Before this patch, the token `InterpEnd` was not a valid follow up token to end a block. This adds `InterpEnd` as a closing token for blocks, allowing `if then else` in interpolation slices without additional parens.
3 lines
66 B
Idris
3 lines
66 B
Idris
ifthenelse : String
|
|
ifthenelse = "\{ if True then "a" else "b" }"
|