Improve some error messages

This commit is contained in:
Rangi42
2025-07-24 11:19:04 -04:00
parent ded4ef4072
commit c6d0e8de63
8 changed files with 16 additions and 9 deletions

View File

@@ -982,8 +982,11 @@ static void discardLineContinuation() {
break;
} else if (c == ';') {
discardComment();
} else if (c == EOF) {
error("Invalid line continuation at end of file");
break;
} else {
error("Begun line continuation, but encountered character %s", printChar(c));
error("Invalid character after line continuation %s", printChar(c));
break;
}
}