From 7a666799ac0f90a323ad556445ec150ceccfd47c Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Mon, 27 Feb 2023 17:36:01 +0100 Subject: [PATCH] Warn about a comment starting with a comma. --- source/app.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/app.d b/source/app.d index 40a70cc..3f72773 100644 --- a/source/app.d +++ b/source/app.d @@ -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");