summaryrefslogtreecommitdiff
path: root/tests/typ/text/raw-syntaxes.typ
blob: 5863e648c3b7a414e9b49d0739e23dadc187b39f (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: "/files/SExpressions.sublime-syntax")

```sexp
(defun factorial (x)
  (if (zerop x)
    ; with a comment
    1
    (* x (factorial (- x 1)))))
```