From 8e69a67d9a1c8e2e38765c102ae52f99be104ae8 Mon Sep 17 00:00:00 2001 From: flan6 Date: Fri, 23 Aug 2024 19:31:28 -0300 Subject: [PATCH] modify testdata for single statement blocks ensures that empty line before an else-if statement is not removed. see #284. --- testdata/script/block-single.txtar | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/testdata/script/block-single.txtar b/testdata/script/block-single.txtar index 5c92ec5..dc51edd 100644 --- a/testdata/script/block-single.txtar +++ b/testdata/script/block-single.txtar @@ -53,6 +53,13 @@ func f() { println() } + if true && + true { + println() + + } else if true { + println() + } for true && true { @@ -104,6 +111,13 @@ func f() { println() } + if true && + true { + println() + + } else if true { + println() + } for true && true {