From 0867476bdea4c19f7c8ecb0cfa422e803a690f0a Mon Sep 17 00:00:00 2001 From: AntonioND Date: Sun, 19 Mar 2017 00:02:40 +0000 Subject: [PATCH] Allow ',' to be escaped in string literals It should only be needed for macro arguments, added to string parsing function as well for consistency. --- src/asm/lexer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index cbd39cf5..af754684 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -565,6 +565,9 @@ yylex_ReadQuotedString() case '"': ch = '"'; break; + case ',': + ch = ','; + break; case '{': ch = '{'; break; @@ -704,6 +707,9 @@ yylex_MACROARGS() case '\\': ch = '\\'; break; + case ',': + ch = ','; + break; case '{': ch = '{'; break;