Zebediah Figura (@zfigura) commented about dlls/msado15/filter.l:
- join_or
+};
+%}
+%%
+[ \t] { /* ignore all whitespace */ } ; +[0-9]+.[0-9]+ { yylval->fval = atof(yytext); return T_FLOAT; } +[0-9]+ { yylval->ival = atoi(yytext); return T_INT; } +['#][^'].*['#] {
yylval->sval = malloc(strlen(yytext)-1);
memcpy(yylval->sval, yytext+1, strlen(yytext)-2);
yylval->sval[strlen(yytext)-2] = '\0';
return T_STRING;
}
Is the dot in this rule an error?
Assuming it is, note that this will match things like:
``` 'abc# #abc' ##abc# ```
Again, I don't know SQL, so this might be correct, but it seems surprising.
Also, is there an escape character?