From 747324238a32558ac80443e6f7c8f7328e9e61a4 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 10 Dec 2007 19:18:03 +0000 Subject: [PATCH] Parse floating point numbers, which start with a decimal point. [r18659] --- lexer.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lexer.c b/lexer.c index 66401d5..46099fc 100644 --- a/lexer.c +++ b/lexer.c @@ -1122,6 +1122,21 @@ void lexer_next_preprocessing_token(void) case '.': MAYBE_PROLOG + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + put_back(c); + c = '.'; + parse_number_dec(); + return; + case '.': MAYBE_PROLOG MAYBE('.', T_DOTDOTDOT) -- 2.20.1