]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/spotlight_rawquery_lexer.l
Set Tracker environment
[netatalk.git] / etc / afpd / spotlight_rawquery_lexer.l
index 81e02bcbb51e7a9dfcf7e8a8e7884e52c8e5d1d5..f29a1a937abb7cad2ea6944e8464905de4091c70 100644 (file)
@@ -1,5 +1,10 @@
+%top{
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+}
+
 %{
-#include <string.h>
 #include <stdbool.h>
 #include <gio/gio.h>
 #include <atalk/talloc.h>
@@ -12,7 +17,7 @@ InRange                               return FUNC_INRANGE;
 \$time\.iso                           return DATE_ISO;
 false                                 {yylval.bval = false; return BOOL;}
 true                                  {yylval.bval = true; return BOOL;}
-[a-zA-Z0-9\*\:\-\.]+                  {yylval.sval = talloc_strdup(ssp_slq, yytext); return WORD;}
+[a-zA-Z0-9_\*\:\-\.]+                 {yylval.sval = talloc_strdup(ssp_slq, yytext); return WORD;}
 \"                                    return QUOTE;
 \(                                    return OBRACE;
 \)                                    return CBRACE;