typst/tests/typ/text/raw-syntaxes.typ
2024-02-28 10:06:54 +00:00

15 lines
268 B
Typst

// Test code highlighting with custom syntaxes.
---
#set page(width: 180pt)
#set text(6pt)
#set raw(syntaxes: "/assets/syntaxes/SExpressions.sublime-syntax")
```sexp
(defun factorial (x)
(if (zerop x)
; with a comment
1
(* x (factorial (- x 1)))))
```