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 '"':
|
||||
ch = '"';
|
||||
break;
|
||||
case ',':
|
||||
ch = ',';
|
||||
break;
|
||||
case '{':
|
||||
ch = '{';
|
||||
break;
|
||||
@@ -704,6 +707,9 @@ yylex_MACROARGS()
|
||||
case '\\':
|
||||
ch = '\\';
|
||||
break;
|
||||
case ',':
|
||||
ch = ',';
|
||||
break;
|
||||
case '{':
|
||||
ch = '{';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user