From ac011fe69f009152eb3bc87707d6140620995547 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 18 Aug 2020 16:49:21 +0200 Subject: [PATCH] Use common function to discard comments in macro args --- src/asm/lexer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index 14d693ce..9f369f9d 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -1667,10 +1667,8 @@ static int yylex_RAW(void) case ';': /* Comments inside macro args */ if (insideString) break; - do { - shiftChars(1); - c = peek(0); - } while (c != EOF && c != '\r' && c != '\n'); + discardComment(); + c = peek(0); /* fallthrough */ case ',': case '\r':