RGBLINK lists local symbols when encountering an unknown symbol reference (#1496)

This commit is contained in:
Sylvie
2024-09-06 21:31:13 -04:00
committed by GitHub
parent 7960a10228
commit 323028d9f2
17 changed files with 69 additions and 4 deletions

View File

@@ -382,6 +382,7 @@ void sdobj_ReadFile(FileStackNode const &where, FILE *file, std::vector<Symbol>
// Expected format: /[DR]ef[0-9A-F]+/i
if (token[0] == 'R' || token[0] == 'r') {
symbol.type = SYMTYPE_IMPORT;
sym_AddSymbol(symbol);
// TODO: hard error if the rest is not zero
} else if (token[0] != 'D' && token[0] != 'd') {
fatal(&where, lineNo, "'S' line is neither \"Def\" nor \"Ref\"");