Merge pull request #311 from dbrotz/fix-222

Fix #222 and #255
This commit is contained in:
Antonio Niño Díaz
2018-12-10 23:17:31 +00:00
7 changed files with 417 additions and 136 deletions

View File

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