Add ability to have version "just requested" when you initially connect.
[m6w6/libmemcached] / libmemcached / csl / scanner.l
index a139c75e4db1030cd4b72c2e93a6ceb8f5fecfdf..8e404b5f9531aa3bd659be5ff3c3de853059bd72 100644 (file)
@@ -46,6 +46,7 @@
 #pragma GCC diagnostic ignored "-Wold-style-cast"
 #pragma GCC diagnostic ignored "-Wsign-compare"
 #pragma GCC diagnostic ignored "-Wunused-parameter"
+#pragma GCC diagnostic ignored "-Wmissing-declarations"
 #endif
 
 #define YY_NO_INPUT
 
 "--NAMESPACE="                         { yyextra->begin= yytext; return yyextra->previous_token= NAMESPACE; }
 
+"--FETCH-VERSION"                              { yyextra->begin= yytext; return yyextra->previous_token= FETCH_VERSION; }
+
 INCLUDE           { yyextra->begin= yytext; return yyextra->previous_token= INCLUDE; }
 RESET           { yyextra->begin= yytext; return yyextra->previous_token= RESET; }
 DEBUG           { yyextra->begin= yytext; return yyextra->previous_token= PARSER_DEBUG; }