diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-09-04 14:22:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-09-04 14:37:54 +0200 |
commit | 71ac97f709441bbcdbeaa2010cb63a782b61e1fa (patch) | |
tree | f654a3cda9601d532b3209ddafb6626b69bda730 /idlc | |
parent | d868e2d2e38ee8f0a1427dd2de5c0fc547b28506 (diff) |
Minor clean up
Remove an odd {1} repeat count, and remove the "."{DIGIT}+ pattern that is
already covered by the following {DIGIT}*"."{DIGIT}+ pattern.
Change-Id: If99dfe10a5e37225355472bf4deceb34c0a92eb9
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/scanner.l | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l index d13160eb46c0..ba6f4d6a1016 100644 --- a/idlc/source/scanner.l +++ b/idlc/source/scanner.l @@ -359,8 +359,7 @@ published return IDL_PUBLISHED; return asciiToInteger(yytext, &yylval.ival, &yylval.uval); } -("-")?{DIGIT}+(e|E){1}(("+"|"-")?{DIGIT}+)+(f|F)? | -("-")?"."{DIGIT}+((e|E)("+"|"-")?{DIGIT}+)?(f|F)? | +("-")?{DIGIT}+(e|E)(("+"|"-")?{DIGIT}+)?(f|F)? | ("-")?{DIGIT}*"."{DIGIT}+((e|E)("+"|"-")?{DIGIT}+)?(f|F)? { yylval.dval = asciiToFloat( yytext ); return IDL_FLOATING_PT_LITERAL; |