diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-07-06 13:51:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-06 13:51:28 +0200 |
| commit | 07553cbe71cab60d1a29b72dc2ffbf25f0f3619c (patch) | |
| tree | bd049508b211ee61a3f636b5d1c2cb72153f318d /tests/typ/text/raw-syntaxes.typ | |
| parent | 076ef3d5f25bdb48f4f33d5bb20b3cc2b64e11a1 (diff) | |
Raw syntax definition loading (#1655)
Diffstat (limited to 'tests/typ/text/raw-syntaxes.typ')
| -rw-r--r-- | tests/typ/text/raw-syntaxes.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/text/raw-syntaxes.typ b/tests/typ/text/raw-syntaxes.typ new file mode 100644 index 00000000..5863e648 --- /dev/null +++ b/tests/typ/text/raw-syntaxes.typ @@ -0,0 +1,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))))) +``` |
