Files
marzipan/src/labels/snapshots/marzipan__labels__process__test__diagnostics.snap
T
cmounce 3bddc3c85e Implement new algorithm for local label processing
This change allows qualified references to local labels from other
sections: you can do `#send section.local` and it will take you to the
appropriate `:.local` label. When `section.local` is ambiguous due to
sections/locals sharing the same names, the reference resolves to the
local in the first such section.
2025-07-11 02:18:17 -07:00

93 lines
1.9 KiB
Plaintext

---
source: src/labels/process.rs
expression: "messages.join(\"\\n\\n\")"
---
warning: trailing characters at end of line
=> test.zzt -> Title screen -> @Trailing (1,1) -> line 2:5
|
1 | @Trailing
2 | #end trailing text
| ^^^^^^^^^^^^^^
error: backward reference needs an anonymous label
=> test.zzt -> Title screen -> @Invalid anon (1,1) -> line 2:7
|
1 | @Invalid anon
2 | #send @b
| ^^
3 | :@
4 | #send @f
|
error: forward reference needs an anonymous label
=> test.zzt -> Title screen -> @Invalid anon (1,1) -> line 4:7
|
1 | @Invalid anon
2 | #send @b
3 | :@
4 | #send @f
| ^^
error: forward reference needs an anonymous label
=> test.zzt -> Title screen -> @Errors in sorted order (1,1) -> line 2:7
|
1 | @Errors in sorted order
2 | #send @f
| ^^
3 | #send @b
|
error: backward reference needs an anonymous label
=> test.zzt -> Title screen -> @Errors in sorted order (1,1) -> line 3:7
|
1 | @Errors in sorted order
2 | #send @f
3 | #send @b
| ^^
error: message targets not allowed for anonymous labels
=> test.zzt -> Title screen -> @Disallowed targets (1,1) -> line 3:2
|
1 | @Disallowed targets
2 | :@
3 | #self:@b
| ^^^^
4 | #others:@f
5 | #all:.local
6 | :@
|
error: message targets not allowed for anonymous labels
=> test.zzt -> Title screen -> @Disallowed targets (1,1) -> line 4:2
|
1 | @Disallowed targets
2 | :@
3 | #self:@b
4 | #others:@f
| ^^^^^^
5 | #all:.local
6 | :@
7 | :.local
|
error: message targets not supported for local labels
=> test.zzt -> Title screen -> @Disallowed targets (1,1) -> line 5:2
|
2 | :@
3 | #self:@b
4 | #others:@f
5 | #all:.local
| ^^^
6 | :@
7 | :.local
|
error: local label definitions cannot specify a section name
=> test.zzt -> Title screen -> @Local label definitions with section names (1,1) -> line 8:2
|
5 | #touch.skip
6 | '
7 | 'this is not
8 | :touch.skip
| ^^^^^^^^^^