1
0
mirror of https://github.com/pfusik/xasm.git synced 2024-12-27 17:29:18 +00:00

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

View File

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