diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-11 16:15:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-11 16:15:57 +0300 |
commit | 497510b22278aafaa7dedb8a6c705e8cdd35e9db (patch) | |
tree | 77996eeb49ee99f5f66e0dbd34419a78f5796cb8 /3rdparty/libconfig/extra/gen/scanner.l | |
parent | 6c0f05b05e9bf09f40df3e3fe7f768f7435abcec (diff) | |
parent | 56297f27e6fa37444d7ddfd5b3ae4348371ee155 (diff) | |
download | hercules-497510b22278aafaa7dedb8a6c705e8cdd35e9db.tar.gz hercules-497510b22278aafaa7dedb8a6c705e8cdd35e9db.tar.bz2 hercules-497510b22278aafaa7dedb8a6c705e8cdd35e9db.tar.xz hercules-497510b22278aafaa7dedb8a6c705e8cdd35e9db.zip |
Merge pull request #788 from MishimaHaruna/libconfig
Libconfig edits for mob_db.conf
Diffstat (limited to '3rdparty/libconfig/extra/gen/scanner.l')
-rw-r--r-- | 3rdparty/libconfig/extra/gen/scanner.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/libconfig/extra/gen/scanner.l b/3rdparty/libconfig/extra/gen/scanner.l index bf527e596..7c71f047e 100644 --- a/3rdparty/libconfig/extra/gen/scanner.l +++ b/3rdparty/libconfig/extra/gen/scanner.l @@ -97,7 +97,7 @@ static int fromihex(const char *s) { true [Tt][Rr][Uu][Ee] false [Ff][Aa][Ll][Ss][Ee] -name [A-Za-z\*][-A-Za-z0-9_\*']* +name [A-Za-z0-9\*][-A-Za-z0-9_\*'.]* integer [-+]?[0-9]+ integer64 [-+]?[0-9]+L(L)? hex 0[Xx][0-9A-Fa-f]+ @@ -181,12 +181,12 @@ include_open ^[ \t]*@include[ \t]+\" \} { return(TOK_GROUP_END); } {true} { yylval->ival = 1; return(TOK_BOOLEAN); } {false} { yylval->ival = 0; return(TOK_BOOLEAN); } -{name} { yylval->sval = yytext; return(TOK_NAME); } {float} { yylval->fval = atof(yytext); return(TOK_FLOAT); } {integer} { yylval->ival = atoi(yytext); return(TOK_INTEGER); } {integer64} { yylval->llval = atoll(yytext); return(TOK_INTEGER64); } {hex} { yylval->ival = fromihex(yytext); return(TOK_HEX); } {hex64} { yylval->llval = fromhex(yytext); return(TOK_HEX64); } +{name} { yylval->sval = yytext; return(TOK_NAME); } \[ { return(TOK_ARRAY_START); } \] { return(TOK_ARRAY_END); } \( { return(TOK_LIST_START); } |