summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2024-04-04 04:18:37 -0400
committerLaurenz <laurmaedje@gmail.com>2024-05-17 14:27:58 +0200
commit6ca871730539082e6fe49448ae99bc1ee36623bc (patch)
tree16cfa156d6275a6625b6c2a32a713a7103ca292c /tests
parent88b305c3f9b2938386d5464dd2dbb52418c02aa0 (diff)
Let the lexer respect linebreaks within inline raw (#3756)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/raw-code.pngbin40290 -> 55071 bytes
-rw-r--r--tests/typ/text/raw-code.typ15
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/ref/text/raw-code.png b/tests/ref/text/raw-code.png
index d3373f5f..682c7c48 100644
--- a/tests/ref/text/raw-code.png
+++ b/tests/ref/text/raw-code.png
Binary files differ
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.