Much improved error messages for ca65. For most errors it will now say what
was expected and what was found instead. Also improved error recovery in a few places.
This commit is contained in:
@@ -87,12 +87,13 @@ void DoEnum (void)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Allow conditionals within an enum */
|
||||
if (CheckConditionals ()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* The format is "identifier [ = value ]" */
|
||||
if (CurTok.Tok != TOK_IDENT) {
|
||||
/* Maybe it's a conditional? */
|
||||
if (!CheckConditionals ()) {
|
||||
ErrorSkip ("Identifier expected");
|
||||
}
|
||||
if (!ExpectSkip (TOK_IDENT, "Expected an identifier")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user