]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/newsearch.l
CHANSERV: better batcher error handling for expired accounts/accounts with no email.
[irc/quakenet/newserv.git] / newsearch / newsearch.l
index 804bdd89e9a581cf8adbc441f2a27310b4272bb8..043c6e03f8817ba12d2fc1a0534547d94a9903b2 100644 (file)
@@ -1,8 +1,12 @@
 %option noyywrap
 
 %{
+
 #include <stdlib.h>
 #include <string.h>
+#ifndef __POSIX_VISIBLE
+#define fileno(x) 0
+#endif
 
 #include "../lib/sstring.h"
 
@@ -87,7 +91,7 @@ letter                [a-zA-Z]
 [ \t]+         { addpos(strlen(yytext));
                  return WHITESPACE;
                }
-{letter}+      { addpos(strlen(yytext));
+({letter}|{digit}|[#\-\+\.\*])+        { addpos(strlen(yytext));
                  yylval = getsstring(yytext, 512);
                  return IDENTIFIER;
                }
@@ -107,3 +111,7 @@ letter              [a-zA-Z]
                  yyterminate();
                }
 %%
+
+void ydummyfn(void) {
+  yyunput(0, NULL);
+}