ext/include/iv/lexer.h in iv-phonic-0.0.8 vs ext/include/iv/lexer.h in iv-phonic-0.0.9

- old
+ new

@@ -758,27 +758,21 @@ // 0 (octal) // octal number cannot convert with strtod type = OCTAL; Record8Advance(); while (true) { - if (c_ == '8' || c_ == '9') { - // not octal digits - type = DECIMAL; - break; - } if (c_ < '0' || '7' < c_) { break; } Record8Advance(); } } + } else { + ScanDecimalDigits(); } - if (type == DECIMAL) { + if (type == DECIMAL && c_ == '.') { + Record8Advance(); ScanDecimalDigits(); - if (c_ == '.') { - Record8Advance(); - ScanDecimalDigits(); - } } } // exponent part if (c_ == 'e' || c_ == 'E') {