diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2005-07-21 08:42:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2005-07-21 08:42:44 (GMT) |
commit | 64c0fdd7432f5d9ddd815fbb459c651f6933a2ea (patch) | |
tree | 0d39615cce00be60a77b797babf9b09b9c6b2a09 /src/constexp.l | |
parent | 7a1074b436cfe0a5e2b49be7d2571e7f5e716243 (diff) | |
download | Doxygen-64c0fdd7432f5d9ddd815fbb459c651f6933a2ea.zip Doxygen-64c0fdd7432f5d9ddd815fbb459c651f6933a2ea.tar.gz Doxygen-64c0fdd7432f5d9ddd815fbb459c651f6933a2ea.tar.bz2 |
Release-1.4.4
Diffstat (limited to 'src/constexp.l')
-rw-r--r-- | src/constexp.l | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/constexp.l b/src/constexp.l index ed2d945..1b97648 100644 --- a/src/constexp.l +++ b/src/constexp.l @@ -48,6 +48,8 @@ static int yyread(char *buf,int max_size) %} +CONSTSUFFIX ([uU][lL]?[lL]?)|(lL][lL]?[uU]?) + %option nounput %% @@ -80,13 +82,13 @@ static int yyread(char *buf,int max_size) g_strToken=yytext; return TOK_CHARACTER; } -0[0-7]*[uUlL]* { g_strToken=yytext; +0[0-7]*{CONSTSUFFIX}? { g_strToken=yytext; return TOK_OCTALINT; } -[1-9][0-9]*[uUlL]* { g_strToken=yytext; +[1-9][0-9]*{CONSTSUFFIX}? { g_strToken=yytext; return TOK_DECIMALINT; } -(0x|0X)[0-9a-fA-F]+[uUlL]* { g_strToken=yytext+2; +(0x|0X)[0-9a-fA-F]+{CONSTSUFFIX}? { g_strToken=yytext+2; return TOK_HEXADECIMALINT; } (([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+))([eE]([\-\+])?[0-9]+)?([fFlL])? { |