mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Allow ',' to be escaped in string literals
It should only be needed for macro arguments, added to string parsing function as well for consistency.
This commit is contained in:
@@ -565,6 +565,9 @@ yylex_ReadQuotedString()
|
|||||||
case '"':
|
case '"':
|
||||||
ch = '"';
|
ch = '"';
|
||||||
break;
|
break;
|
||||||
|
case ',':
|
||||||
|
ch = ',';
|
||||||
|
break;
|
||||||
case '{':
|
case '{':
|
||||||
ch = '{';
|
ch = '{';
|
||||||
break;
|
break;
|
||||||
@@ -704,6 +707,9 @@ yylex_MACROARGS()
|
|||||||
case '\\':
|
case '\\':
|
||||||
ch = '\\';
|
ch = '\\';
|
||||||
break;
|
break;
|
||||||
|
case ',':
|
||||||
|
ch = ',';
|
||||||
|
break;
|
||||||
case '{':
|
case '{':
|
||||||
ch = '{';
|
ch = '{';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user