diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-04-04 04:18:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-04 08:18:37 +0000 |
| commit | 8c28f67504256998584d89bab7e3805599f72e00 (patch) | |
| tree | 1698cb96a624569363d421a82e08e883fb51814f /tests | |
| parent | d4b3ae0925748ef37a778b56ee26b63bf4585b06 (diff) | |
Let the lexer respect linebreaks within inline raw (#3756)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/raw-code.png | bin | 40290 -> 55071 bytes | |||
| -rw-r--r-- | tests/typ/text/raw-code.typ | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/ref/text/raw-code.png b/tests/ref/text/raw-code.png Binary files differindex d3373f5f..682c7c48 100644 --- a/tests/ref/text/raw-code.png +++ b/tests/ref/text/raw-code.png 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. |
