ref: b8642bf3af0f4d6833724a3ba03859853e85fd07
parent: 317b206fa87f0fe27884eab28e8a5bb44db6ba28
author: Christophe Staïesse <[email protected]>
date: Sat Mar 18 11:58:33 EDT 2017
Allow { and } to be escaped in string literals As stated in the documentation but that was not actually implemented.
--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -565,6 +565,12 @@
case '"':
ch = '"';
break;
+ case '{':
+ ch = '{';
+ break;
+ case '}':
+ ch = '}';
+ break;
default:
maxLength = MAXSTRLEN - index;
length = CopyMacroArg(&yylval.tzString[index], maxLength, ch);
@@ -697,6 +703,12 @@
break;
case '\\':
ch = '\\';
+ break;
+ case '{':
+ ch = '{';
+ break;
+ case '}':
+ ch = '}';
break;
default:
maxLength = MAXSTRLEN - index;