shithub: rgbds

Download patch

ref: 58ab88da82577ee9f73557fcb937016dbfd29893
parent: 3e219dee369e24912cbe7de23997dbf91b28e3c7
author: Antonio Niño Díaz <[email protected]>
date: Tue Feb 20 18:48:55 EST 2018

Allow to scape `"` in lists of macro args

For example:

    PrintMacro : MACRO
        PRINTT \1
    ENDM

        PrintMacro STRCAT(\"Hello\"\,  \" world\\n\")

Signed-off-by: Antonio Niño Díaz <[email protected]>

--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -763,6 +763,9 @@
 			case '\\':
 				ch = '\\';
 				break;
+			case '"':
+				ch = '\"';
+				break;
 			case ',':
 				ch = ',';
 				break;