mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 03:22:08 +00:00
Merge pull request #440 from ISSOtm/nested_brackets
Allow nested bracketed symbols
This commit is contained in:
@@ -666,6 +666,11 @@ size_t yylex_ReadBracketedSymbol(char *dest, size_t index)
|
||||
i += length;
|
||||
else
|
||||
fatalerror("Illegal character escape '%c'", ch);
|
||||
} else if (ch == '{') {
|
||||
/* Handle nested symbols */
|
||||
++pLexBuffer;
|
||||
i += yylex_ReadBracketedSymbol(sym, i);
|
||||
--pLexBuffer;
|
||||
} else if (ch == ':' && !mode) { /* Only grab 1st colon */
|
||||
/* Use a whitelist of modes, which does prevent the
|
||||
* use of some features such as precision,
|
||||
|
||||
Reference in New Issue
Block a user