Don't append invalid characters to symbol name

When a macro arg appears in a symbol name, the contents are appended.
However, the contents of the macro arg were not being validated.
Any character, regardless of whether it was allowed in a symbol name,
would be appended. With this change, the contents of the macro arg
are now validated character by character. The symbol name is considered
to end at the last valid character. The remainder of the macro arg is
treated as though it followed the symbol name in the asm source code.
This commit is contained in:
dbrotz
2019-06-26 17:36:12 -07:00
parent 54e5bf0f0c
commit c75a9539ba
5 changed files with 121 additions and 39 deletions

View File

@@ -803,8 +803,6 @@ scanagain:
goto scanagain;
}
pLexBuffer += nFloatLen;
if (token->nToken == T_ID && linestart)
return T_LABEL;
else