Improved an error message.

This commit is contained in:
Kugel Fuhr
2025-07-04 14:51:56 +02:00
parent 29f7ab3809
commit 2e6f04034b

View File

@@ -862,7 +862,7 @@ static void OneLine (void)
*/
if (CurTok.Tok != TOK_COLON) {
if (HadWS || !NoColonLabels) {
Error ("':' expected");
Error ("Expected ':' after identifier to form a label");
/* Try some smart error recovery */
if (CurTok.Tok == TOK_NAMESPACE) {
NextTok ();