Change indent from 4 to 2 spaces

This commit is contained in:
Laurenz 2021-07-30 18:37:04 +02:00
parent 1ee1d078e2
commit e35fca54a0
23 changed files with 320 additions and 320 deletions

View File

@ -52,7 +52,7 @@
// Some things can't be joined. // Some things can't be joined.
{ {
[A] [A]
// Error: 5-6 cannot join template with integer // Error: 3-4 cannot join template with integer
1 1
[B] [B]
} }
@ -117,10 +117,10 @@
// Should output `3`. // Should output `3`.
{ {
// Error: 9-12 expected identifier, found string // Error: 7-10 expected identifier, found string
for "v" for "v"
// Error: 10 expected keyword `in` // Error: 8 expected keyword `in`
for v let z = 1 + 2 for v let z = 1 + 2
z z

View File

@ -59,7 +59,7 @@
--- ---
// Don't leak environment. // Don't leak environment.
{ {
// Error: 18-19 unknown variable // Error: 16-17 unknown variable
let func() = x let func() = x
let x = "hi" let x = "hi"
func() func()
@ -71,7 +71,7 @@
let types(x, y) = "[" + type(x) + ", " + type(y) + "]" let types(x, y) = "[" + type(x) + ", " + type(y) + "]"
test(types(14%, 12pt), "[relative, length]") test(types(14%, 12pt), "[relative, length]")
// Error: 16-22 missing argument: y // Error: 14-20 missing argument: y
test(types("nope"), "[string, none]") test(types("nope"), "[string, none]")
} }
@ -80,6 +80,6 @@
{ {
let f(x) = x + 1 let f(x) = x + 1
// Error: 10-15 unexpected argument // Error: 8-13 unexpected argument
f(1, "two", () => x) f(1, "two", () => x)
} }

View File

@ -14,7 +14,7 @@
--- ---
{ {
// Error: 21-43 file not found // Error: 19-41 file not found
let x = include "importable/chap3.typ" let x = include "importable/chap3.typ"
} }

View File

@ -36,7 +36,7 @@
--- ---
// Make sure that we terminate and don't complain multiple times. // Make sure that we terminate and don't complain multiple times.
#while true { #while true {
// Error: 5-9 unknown variable // Error: 3-7 unknown variable
nope nope
} }