mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Change indent from 4 to 2 spaces
This commit is contained in:
parent
1ee1d078e2
commit
e35fca54a0
@ -52,7 +52,7 @@
|
||||
// Some things can't be joined.
|
||||
{
|
||||
[A]
|
||||
// Error: 5-6 cannot join template with integer
|
||||
// Error: 3-4 cannot join template with integer
|
||||
1
|
||||
[B]
|
||||
}
|
||||
@ -117,10 +117,10 @@
|
||||
|
||||
// Should output `3`.
|
||||
{
|
||||
// Error: 9-12 expected identifier, found string
|
||||
// Error: 7-10 expected identifier, found string
|
||||
for "v"
|
||||
|
||||
// Error: 10 expected keyword `in`
|
||||
// Error: 8 expected keyword `in`
|
||||
for v let z = 1 + 2
|
||||
|
||||
z
|
||||
|
@ -59,7 +59,7 @@
|
||||
---
|
||||
// Don't leak environment.
|
||||
{
|
||||
// Error: 18-19 unknown variable
|
||||
// Error: 16-17 unknown variable
|
||||
let func() = x
|
||||
let x = "hi"
|
||||
func()
|
||||
@ -71,7 +71,7 @@
|
||||
let types(x, y) = "[" + type(x) + ", " + type(y) + "]"
|
||||
test(types(14%, 12pt), "[relative, length]")
|
||||
|
||||
// Error: 16-22 missing argument: y
|
||||
// Error: 14-20 missing argument: y
|
||||
test(types("nope"), "[string, none]")
|
||||
}
|
||||
|
||||
@ -80,6 +80,6 @@
|
||||
{
|
||||
let f(x) = x + 1
|
||||
|
||||
// Error: 10-15 unexpected argument
|
||||
// Error: 8-13 unexpected argument
|
||||
f(1, "two", () => x)
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
---
|
||||
{
|
||||
// Error: 21-43 file not found
|
||||
// Error: 19-41 file not found
|
||||
let x = include "importable/chap3.typ"
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
---
|
||||
// Make sure that we terminate and don't complain multiple times.
|
||||
#while true {
|
||||
// Error: 5-9 unknown variable
|
||||
// Error: 3-7 unknown variable
|
||||
nope
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user