mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Minor change
git-svn-id: svn://svn.cc65.org/cc65/trunk@3109 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f500a641c5
commit
71ed8810c3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user