Fix ambiguity in const parsing

This commit is contained in:
dbrotz
2018-12-02 13:49:12 -08:00
parent 5cb6c4af4b
commit 3806eb3139
6 changed files with 415 additions and 136 deletions

View File

@@ -14,6 +14,7 @@
#include <ctype.h>
#include "asm/asm.h"
#include "asm/constexpr.h"
#include "asm/fstack.h"
#include "asm/lexer.h"
#include "asm/main.h"
@@ -735,6 +736,7 @@ scanagain:
/* Longest match was a keyword or operator. */
pLexBuffer += pLongestFixed->nNameLength;
yylval.nConstValue = pLongestFixed->nToken;
return pLongestFixed->nToken;
}