From 9a9ecd574e0cf548febc9dfc85920d4f746e2cd3 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 25 Nov 2012 17:43:24 +0100 Subject: [PATCH] Fix a bug in the lexer causing double-dots to double the character after the 2nd dot --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer.c b/lexer.c index d39a0e5..10a0091 100644 --- a/lexer.c +++ b/lexer.c @@ -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); } -- 2.39.2