From 07553cbe71cab60d1a29b72dc2ffbf25f0f3619c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Thu, 6 Jul 2023 13:51:28 +0200 Subject: Raw syntax definition loading (#1655) --- tests/ref/text/raw-syntaxes.png | Bin 0 -> 5142 bytes tests/typ/text/raw-syntaxes.typ | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/ref/text/raw-syntaxes.png create mode 100644 tests/typ/text/raw-syntaxes.typ (limited to 'tests') diff --git a/tests/ref/text/raw-syntaxes.png b/tests/ref/text/raw-syntaxes.png new file mode 100644 index 00000000..ada751e0 Binary files /dev/null and b/tests/ref/text/raw-syntaxes.png differ 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))))) +``` -- cgit v1.2.3