1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-06 01:55:47 +00:00

Minor change

git-svn-id: svn://svn.cc65.org/cc65/trunk@3109 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-06-06 18:36:08 +00:00
parent f500a641c5
commit 71ed8810c3

View File

@ -688,7 +688,7 @@ void NextToken (void)
}
/* Determine the next token from the lookahead */
if (IsDigit (CurC)) {
if (IsDigit (CurC) || (CurC == '.' && IsDigit (NextC))) {
/* A number */
NumericConst ();
return;
@ -824,21 +824,17 @@ void NextToken (void)
}
break;
case '.':
if (IsDigit (NextC)) {
NumericConst ();
} else {
case '.':
NextChar ();
if (CurC == '.') {
NextChar ();
if (CurC == '.') {
NextChar ();
if (CurC == '.') {
SetTok (TOK_ELLIPSIS);
} else {
UnknownChar (CurC);
}
SetTok (TOK_ELLIPSIS);
} else {
NextTok.Tok = TOK_DOT;
UnknownChar (CurC);
}
} else {
NextTok.Tok = TOK_DOT;
}
break;