shithub: rgbds

Download patch

ref: fa962b94702787480203331f44b036199eaf7218
parent: 317b206fa87f0fe27884eab28e8a5bb44db6ba28
parent: b8642bf3af0f4d6833724a3ba03859853e85fd07
author: AntonioND <[email protected]>
date: Sat Mar 18 19:54:59 EDT 2017

Merge pull request #139 from chastai/escape-cb

Allow { and } to be escaped in string literals

--- 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;