summaryrefslogtreecommitdiff
path: root/tests/typ/func-font-fallback.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-02 19:37:10 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-02 19:37:10 +0100
commit1c40dc42e7bc7b799b77f06d25414aca59a044ba (patch)
treeea8bdedaebf59f5bc601346b0108236c7264a29d /tests/typ/func-font-fallback.typ
parent8cad78481cd52680317032c3bb84cacda5666489 (diff)
Dynamic values, Types, Arrays, and Dictionaries 🚀
- Identifiers are now evaluated as variables instead of being plain values - Constants like `left` or `bold` are stored as dynamic values containing the respective rust types - We now distinguish between arrays and dictionaries to make things more intuitive (at the cost of a bit more complex parsing) - Spans were removed from collections (arrays, dictionaries), function arguments still have spans for the top-level values to enable good diagnostics
Diffstat (limited to 'tests/typ/func-font-fallback.typ')
-rw-r--r--tests/typ/func-font-fallback.typ14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/typ/func-font-fallback.typ b/tests/typ/func-font-fallback.typ
index 9b60d46c..c6dd81f0 100644
--- a/tests/typ/func-font-fallback.typ
+++ b/tests/typ/func-font-fallback.typ
@@ -4,15 +4,17 @@
Emoji: 🏀
// CMU Serif + Noto Emoji.
-[font "CMU Serif", "Noto Emoji"][Emoji: 🏀]
+[font "CMU Serif", "Noto Emoji"][
+ Emoji: 🏀
+]
// Class definitions.
-[font math: ("CMU Serif", "Latin Modern Math", "Noto Emoji")]
-[font math][Math: ∫ α + β ➗ 3]
+[font serif: ("CMU Serif", "Latin Modern Math", "Noto Emoji")]
+[font serif][
+ Math: ∫ α + β ➗ 3
+]
-// Class redefinition.
+// Class definition reused.
[font sans-serif: "Noto Emoji"]
[font sans-serif: ("Archivo", sans-serif)]
New sans-serif. 🚀
-
-// TODO: Add tests for other scripts.