summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-12 11:45:24 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-12 11:45:24 +0200
commite39be71a54a4264032115ab3b31bdd86845a966b (patch)
tree94033508349f8cb3087a394bb4e0950665787e80 /tests
parent14d28dbf4e9c67333c54aed51c0a1dab9a264c17 (diff)
Fix newline parsing behaviour in markup
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/newline-mode.pngbin0 -> 7771 bytes
-rw-r--r--tests/typ/bugs/newline-mode.typ24
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/ref/bugs/newline-mode.png b/tests/ref/bugs/newline-mode.png
new file mode 100644
index 00000000..d4b6c6d8
--- /dev/null
+++ b/tests/ref/bugs/newline-mode.png
Binary files differ
diff --git a/tests/typ/bugs/newline-mode.typ b/tests/typ/bugs/newline-mode.typ
new file mode 100644
index 00000000..30545eee
--- /dev/null
+++ b/tests/typ/bugs/newline-mode.typ
@@ -0,0 +1,24 @@
+// Test newline continuations.
+
+---
+#{
+ "hello"
+ .clusters()
+ if false {
+
+ }
+ else {
+ ("1", "2")
+ }
+}
+
+---
+#"hello"
+ .codepoints()
+
+#if false {
+
+}
+else {
+ ("1", "2")
+}