diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-07-21 08:42:44 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-07-21 08:42:44 (GMT) |
commit | e2bafacf8c0f6ef0dd7f9f4958a125761bda31ec (patch) | |
tree | 0d39615cce00be60a77b797babf9b09b9c6b2a09 /src/constexp.l | |
parent | 97589008c3ba05a8cc3ffe2dc47f118908c741b6 (diff) | |
download | Doxygen-e2bafacf8c0f6ef0dd7f9f4958a125761bda31ec.zip Doxygen-e2bafacf8c0f6ef0dd7f9f4958a125761bda31ec.tar.gz Doxygen-e2bafacf8c0f6ef0dd7f9f4958a125761bda31ec.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])? { |