summaryrefslogtreecommitdiff
path: root/tests/typ/code/include.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-30 18:04:08 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-30 18:49:19 +0200
commit1ee1d078e2480ddd08d40915bc7a74a8352acff0 (patch)
tree1e7ff367278a19fead3e404cf06d65bfb80a6cd9 /tests/typ/code/include.typ
parent42a27b48df427edf8dbb624c51551a90ecf2e7ea (diff)
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
Diffstat (limited to 'tests/typ/code/include.typ')
-rw-r--r--tests/typ/code/include.typ13
1 files changed, 8 insertions, 5 deletions
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