summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-05-30 15:57:12 +0800
committerGitHub <noreply@github.com>2024-05-30 07:57:12 +0000
commit702271dacb205d43f91736386e5575590f2c3af2 (patch)
tree0e21021ef36c488bccdcb91733a0cfe93aaa4ce8 /tests
parent06a925a0ee0e1e7b93428d8b4952512a2e48ed79 (diff)
Allow setting `raw.theme` to `none` to disable syntax highlighting (#4256)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/raw-theme-set-to-none.pngbin0 -> 449 bytes
-rw-r--r--tests/suite/text/raw.typ6
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/ref/raw-theme-set-to-none.png b/tests/ref/raw-theme-set-to-none.png
new file mode 100644
index 00000000..1451e0c9
--- /dev/null
+++ b/tests/ref/raw-theme-set-to-none.png
Binary files differ
diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ
index 8ced276c..1807e71a 100644
--- a/tests/suite/text/raw.typ
+++ b/tests/suite/text/raw.typ
@@ -648,6 +648,12 @@ fn main() {
#let hi = "Hello World"
```
+--- raw-theme-set-to-none ---
+#set raw(theme: none)
+```typ
+#let foo = "bar"
+```
+
--- raw-unclosed ---
// Test unterminated raw text.
//