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:
parent
95136d1546
commit
7a666799ac
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user