From 6ca871730539082e6fe49448ae99bc1ee36623bc Mon Sep 17 00:00:00 2001 From: Leedehai <18319900+Leedehai@users.noreply.github.com> Date: Thu, 4 Apr 2024 04:18:37 -0400 Subject: Let the lexer respect linebreaks within inline raw (#3756) --- tests/typ/text/raw-code.typ | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/typ') 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 ``` + +--- +#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. -- cgit v1.2.3