From 1ee1d078e2480ddd08d40915bc7a74a8352acff0 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 30 Jul 2021 18:04:08 +0200 Subject: Fatal errors - Makes errors fatal, so that a phase is only reached when all previous phases were error-free - Parsing still recovers and can produce multiple errors - Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import) - The single error that could occur during execution is removed for now - Removes Value::Error variant --- tests/typ/code/include.typ | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/typ/code/include.typ') diff --git a/tests/typ/code/include.typ b/tests/typ/code/include.typ index 166c3945..0d1abc08 100644 --- a/tests/typ/code/include.typ +++ b/tests/typ/code/include.typ @@ -6,18 +6,21 @@ // Include a file #include "importable/chap1.typ" -// The variables of the file should not appear in this scope. -// Error: 1-6 unknown variable -#name - // Expression as a file name. #let chap2 = include "import" + "able/chap" + "2.typ" -- _Intermission_ -- #chap2 +--- { - // Expressions, code mode. // Error: 21-43 file not found let x = include "importable/chap3.typ" } + +--- +#include "importable/chap1.typ" + +// The variables of the file should not appear in this scope. +// Error: 1-6 unknown variable +#name -- cgit v1.2.3