1
0
mirror of https://github.com/pfusik/xasm.git synced 2024-06-15 03:29:31 +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]) {
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");