1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-13 23:25:29 +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 */ /* Determine the next token from the lookahead */
if (IsDigit (CurC)) { if (IsDigit (CurC) || (CurC == '.' && IsDigit (NextC))) {
/* A number */ /* A number */
NumericConst (); NumericConst ();
return; return;
@@ -825,20 +825,16 @@ void NextToken (void)
break; break;
case '.': case '.':
if (IsDigit (NextC)) { NextChar ();
NumericConst (); if (CurC == '.') {
} else {
NextChar (); NextChar ();
if (CurC == '.') { if (CurC == '.') {
NextChar (); SetTok (TOK_ELLIPSIS);
if (CurC == '.') {
SetTok (TOK_ELLIPSIS);
} else {
UnknownChar (CurC);
}
} else { } else {
NextTok.Tok = TOK_DOT; UnknownChar (CurC);
} }
} else {
NextTok.Tok = TOK_DOT;
} }
break; break;