Warn about a comment starting with a comma.

This commit is contained in:
Piotr Fusik 2023-02-27 17:36:01 +01:00
parent 95136d1546
commit 7a666799ac
1 changed files with 5 additions and 0 deletions

View File

@ -367,6 +367,11 @@ void checkNoExtraCharacters() {
switch (line[column]) {
case '\t':
case ' ':
if (pass2) {
readSpaces();
if (!eol() && line[column] == ',')
warning("Comment starts with a comma. Unintended whitespace?");
}
return;
default:
throw new AssemblyError("Extra characters on line");