c = in.get();
int next = in.peek();
- if(c=='/' && next=='/')
+ if(c=='/' && next=='/' && !comment)
comment = 1;
- else if(c=='/' && next=='*')
+ else if(c=='/' && next=='*' && !comment)
comment = 2;
else if(c=='\n' && comment==1)
comment = 0;
case DECIMAL:
if(c=='.')
state = FLOAT;
+ else if(c=='e' || c=='E')
+ state = FLOATEXPINIT;
else if(!isdigit(c))
throw parse_error(buf);
break;