From e039552f9d7bb49da8dafe7a83b87a08202eb30f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 13 Apr 2024 10:39:45 +0200 Subject: Better test runner (#3922) --- tests/typ/text/raw-code.typ | 86 --------------------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 tests/typ/text/raw-code.typ (limited to 'tests/typ/text/raw-code.typ') diff --git a/tests/typ/text/raw-code.typ b/tests/typ/text/raw-code.typ deleted file mode 100644 index 3ac72a05..00000000 --- a/tests/typ/text/raw-code.typ +++ /dev/null @@ -1,86 +0,0 @@ -// Test code highlighting. - ---- -#set page(width: 180pt) -#set text(6pt) -#show raw: it => rect( - width: 100%, - inset: (x: 4pt, y: 5pt), - radius: 4pt, - fill: rgb(239, 241, 243), - place(right, text(luma(110), it.lang)) + it, -) - -```typ -= Chapter 1 -#lorem(100) - -#let hi = "Hello World" -#show heading: emph -``` - -```rust -/// A carefully designed state machine. -#[derive(Debug)] -enum State<'a> { A(u8), B(&'a str) } - -fn advance(state: State<'_>) -> State<'_> { - unimplemented!("state machine") -} -``` - -```py -import this - -def hi(): - print("Hi!") -``` - -```cpp -#include - -int main() { - std::cout << "Hello, world!"; -} -``` - -```julia -# Add two numbers -function add(x, y) - return x * y -end -``` - - // Try with some indent. - ```html - - - - - - -

Topic

-

The Hypertext Markup Language.

- - - - ``` - ---- -#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