Fix a bug in the lexer causing double-dots to double the character after the 2nd dot

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-25 17:43:24 +01:00
parent e22af32805
commit 9a9ecd574e

View file

@ -1110,7 +1110,7 @@ int lex_do(lex_file *lex)
nextch = lex_getch(lex);
if (nextch != '.') {
lex_ungetch(lex, nextch);
lex_ungetch(lex, nextch);
lex_ungetch(lex, '.');
lex_endtoken(lex);
return (lex->tok.ttype = ch);
}