aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-07-23 03:20:27 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-07-23 03:20:27 +0000
commite75abdabb2c3e7a31dfbe7a29022a038e3f2ecc1 (patch)
treed6cd54861b19d5c8afd822a880b0274ccdba412f /gcc/java/lex.c
parent9cc37f69d2d52ccd3dce3040fe8d78555aa4e5d8 (diff)
downloadgcc-e75abdabb2c3e7a31dfbe7a29022a038e3f2ecc1.zip
gcc-e75abdabb2c3e7a31dfbe7a29022a038e3f2ecc1.tar.gz
gcc-e75abdabb2c3e7a31dfbe7a29022a038e3f2ecc1.tar.bz2
* lex.c (java_lex): Check for `e' or `E' after 0.
From-SVN: r55664
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index d350e99..5659ed2 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -1023,9 +1023,10 @@ java_lex (java_lval)
}
else if (JAVA_ASCII_DIGIT (c))
radix = 8;
- else if (c == '.')
+ else if (c == '.' || c == 'e' || c =='E')
{
- /* Push the '.' back and prepare for a FP parsing... */
+ /* Push the '.', 'e', or 'E' back and prepare for a FP
+ parsing... */
java_unget_unicode ();
c = '0';
}