summaryrefslogtreecommitdiff
path: root/tests/typ/text/raw-code.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/text/raw-code.typ')
-rw-r--r--tests/typ/text/raw-code.typ15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/typ/text/raw-code.typ b/tests/typ/text/raw-code.typ
index ca7b247d..3ac72a05 100644
--- a/tests/typ/text/raw-code.typ
+++ b/tests/typ/text/raw-code.typ
@@ -69,3 +69,18 @@ end
</body>
</html>
```
+
+---
+#set page(width: 180pt)
+#set text(6pt)
+#set raw(lang:"python")
+
+Inline raws, multiline e.g. `for i in range(10):
+ # Only this line is a comment.
+ print(i)` or otherwise e.g. `print(j)`, are colored properly.
+
+Inline raws, multiline e.g. `
+# Appears blocky due to linebreaks at the boundary.
+for i in range(10):
+ print(i)
+` or otherwise e.g. `print(j)`, are colored properly.