summaryrefslogtreecommitdiff
path: root/tests/typ/text/raw-syntaxes.typ
blob: e6c46924b98f964c42a2e477b0e30ef797a6a916 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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)))))
```