summaryrefslogtreecommitdiff
path: root/src/parse/incremental.rs
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2022-02-03 11:31:53 +0100
committerMartin Haug <mhaug@live.de>2022-02-03 11:31:53 +0100
commite32e9faa53e6c89a4555306a6c40186e58e01b6c (patch)
treedfa685a1cb4396037d909b5055318bb98800890b /src/parse/incremental.rs
parent6a6753cb69f7c29e857fd465eecf66a02ff76aa3 (diff)
Fix incremental group bug
Diffstat (limited to 'src/parse/incremental.rs')
-rw-r--r--src/parse/incremental.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse/incremental.rs b/src/parse/incremental.rs
index a347f6ca..5a366664 100644
--- a/src/parse/incremental.rs
+++ b/src/parse/incremental.rs
@@ -690,5 +690,7 @@ mod tests {
test("[hello]", 2 .. 3, "]", 0 .. 7);
test("{a}", 1 .. 2, "b", 1 .. 2);
test("{ a; b; c }", 5 .. 6, "[}]", 0 .. 13);
+ test("#a()\n~", 3..4, "{}", 0..7);
+ test("[]\n~", 1..2, "#if i==0 {true}", 0..18);
}
}