Allow nested bracketed symbols

Fixes #320
This commit is contained in:
ISSOtm
2019-10-10 14:58:17 +02:00
parent e93d65d736
commit 694075e840

View File

@@ -666,6 +666,11 @@ size_t yylex_ReadBracketedSymbol(char *dest, size_t index)
i += length; i += length;
else else
fatalerror("Illegal character escape '%c'", ch); 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 */ } else if (ch == ':' && !mode) { /* Only grab 1st colon */
/* Use a whitelist of modes, which does prevent the /* Use a whitelist of modes, which does prevent the
* use of some features such as precision, * use of some features such as precision,