diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-04-04 04:18:37 -0400 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 14:27:58 +0200 |
| commit | 6ca871730539082e6fe49448ae99bc1ee36623bc (patch) | |
| tree | 16cfa156d6275a6625b6c2a32a713a7103ca292c /tests/typ/text | |
| parent | 88b305c3f9b2938386d5464dd2dbb52418c02aa0 (diff) | |
Let the lexer respect linebreaks within inline raw (#3756)
Diffstat (limited to 'tests/typ/text')
| -rw-r--r-- | tests/typ/text/raw-code.typ | 15 |
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. |
