Add more error messages for local/anonymous labels

This commit is contained in:
2025-07-05 23:49:57 -07:00
parent eee57848e0
commit 3ff40241ee
4 changed files with 92 additions and 3 deletions
@@ -44,3 +44,50 @@ error: backward reference needs an anonymous label
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 labels with section names not supported
=> test.zzt -> Title screen -> @Locals with section names (1,1) -> line 3:2
|
1 | @Locals with section names
2 | :touch
3 | #touch.skip
| ^^^^^^^^^^
4 | :.skip
|