force sc_tokens
size and token enumeration size to match
This commit is contained in:
parent
01c2dcaeb4
commit
d60ef405c9
@ -421,7 +421,10 @@ enum {
|
|||||||
teLOCAL, /* local variable (name or offset) */
|
teLOCAL, /* local variable (name or offset) */
|
||||||
teFUNCTN, /* Pawn function */
|
teFUNCTN, /* Pawn function */
|
||||||
teNATIVE, /* native function */
|
teNATIVE, /* native function */
|
||||||
teNONNEG , /* nonnegative integer */
|
teNONNEG, /* nonnegative integer */
|
||||||
|
|
||||||
|
tlexLAST = teNONNEG,
|
||||||
|
|
||||||
/* for assigment to "lastst" only (see SC1.C) */
|
/* for assigment to "lastst" only (see SC1.C) */
|
||||||
tEXPR,
|
tEXPR,
|
||||||
tENDLESS, /* endless loop */
|
tENDLESS, /* endless loop */
|
||||||
|
@ -2133,7 +2133,7 @@ SC_FUNC void lexinit(void)
|
|||||||
_lexnewline=FALSE;
|
_lexnewline=FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *sc_tokens[] = {
|
char *sc_tokens[tlexLAST-tFIRST+1] = {
|
||||||
"*=", "/=", "%=", "+=", "-=", "<<=", ">>>=", ">>=", "&=", "^=", "|=",
|
"*=", "/=", "%=", "+=", "-=", "<<=", ">>>=", ">>=", "&=", "^=", "|=",
|
||||||
"||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--",
|
"||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--",
|
||||||
"...", "..",
|
"...", "..",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user