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
master
seyko 2015-10-17 13:54:58 +03:00
parent f0b7566181
commit c3975cf27c
1 changed files with 1 additions and 3 deletions

View File

@ -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 {