X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fspotlight_rawquery_lexer.l;h=b3b4bce2729e3842a1efc643a92ddb22b3956c57;hb=0514aeef6f0102e4f7d274f0c0046003eca5c6c1;hp=6bc87e2c143d1c7d5b56f2787014dd7e174ebd9f;hpb=4612605356d48e60d5017a8dabb4b97eff16a229;p=netatalk.git diff --git a/etc/afpd/spotlight_rawquery_lexer.l b/etc/afpd/spotlight_rawquery_lexer.l index 6bc87e2c..b3b4bce2 100644 --- a/etc/afpd/spotlight_rawquery_lexer.l +++ b/etc/afpd/spotlight_rawquery_lexer.l @@ -11,9 +11,11 @@ InRange return FUNC_INRANGE; \$time\.iso return DATE_SPEC; ....-..-..T..:..:..Z {yylval.sval = talloc_strdup(ssp_slq, yytext); return DATE;} +cwd /* ignore case specifier */ +cd /* ignore */ false {yylval.bval = false; return BOOL;} true {yylval.bval = true; return BOOL;} -[a-zA-Z\*]+ {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; @@ -25,6 +27,4 @@ true {yylval.bval = true; return BOOL;} \> return GT; \, return COMMA; [ \t\n] /* ignore */ -cwd /* ignore case specifier */ -cd /* ignore */ %%