parsing "..." sequence
don't panic with error: '.' expected if there is only two '.' chars. Return tok='.' in such case. An asm code to test: jz do_move0 # .. then we have a normal low # .. or else we have a high
This commit is contained in:
parent
f0b7566181
commit
c3975cf27c
1 changed files with 1 additions and 3 deletions
4
tccpp.c
4
tccpp.c
|
@ -2537,10 +2537,8 @@ maybe_newline:
|
|||
cstr_reset(&tokcstr);
|
||||
cstr_ccat(&tokcstr, '.');
|
||||
goto parse_num;
|
||||
} else if (c == '.') {
|
||||
} else if ((c == '.') && (p[1] == '.')){
|
||||
PEEKC(c, p);
|
||||
if (c != '.')
|
||||
expect("'.'");
|
||||
PEEKC(c, p);
|
||||
tok = TOK_DOTS;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue