summaryrefslogtreecommitdiff
path: root/crates/typst-syntax/src/reparser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-syntax/src/reparser.rs')
-rw-r--r--crates/typst-syntax/src/reparser.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst-syntax/src/reparser.rs b/crates/typst-syntax/src/reparser.rs
index 1b7dc42f..157c075b 100644
--- a/crates/typst-syntax/src/reparser.rs
+++ b/crates/typst-syntax/src/reparser.rs
@@ -301,6 +301,8 @@ mod tests {
test("a\n#let \nb", 7..7, "i", true);
test(r"#{{let x = z}; a = 1} b", 7..7, "//", false);
test(r#"a ```typst hello```"#, 16..17, "", false);
+ test("a{b}c", 1..1, "#", false);
+ test("a#{b}c", 1..2, "", false);
}
#[test]