From 1c40dc42e7bc7b799b77f06d25414aca59a044ba Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 2 Jan 2021 19:37:10 +0100 Subject: =?UTF-8?q?Dynamic=20values,=20Types,=20Arrays,=20and=20Dictionari?= =?UTF-8?q?es=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- tests/typ/func-font-error.typ | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/typ/func-font-error.typ') diff --git a/tests/typ/func-font-error.typ b/tests/typ/func-font-error.typ index 492ef9df..b75a4fb7 100644 --- a/tests/typ/func-font-error.typ +++ b/tests/typ/func-font-error.typ @@ -6,12 +6,16 @@ // Wrong types. [font style: bold, weight: "thin", serif: 0] +// Weight out of range. +[font weight: 2700] + // Non-existing argument. [font something: "invalid"] // compare-ref: false // error: 4:7-4:12 unexpected argument -// error: 7:14-7:18 invalid font style +// error: 7:14-7:18 expected font style, found font weight // error: 7:28-7:34 expected font weight, found string -// error: 7:43-7:44 expected family or list of families, found integer -// error: 10:7-10:27 unexpected argument +// error: 7:43-7:44 expected font family or array of font families, found integer +// warning: 10:15-10:19 must be between 100 and 900 +// error: 13:7-13:27 unexpected argument -- cgit v1.2.3