From 694075e840a4c080ed23aa7a02a4ac55d87a7101 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 10 Oct 2019 14:58:17 +0200 Subject: [PATCH] Allow nested bracketed symbols Fixes #320 --- src/asm/lexer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index 5e82352a..ee391b43 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -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,