Closed fabiopedrosa closed 5 years ago
Hi @fabiopedrosa
So far we though we should better be tolerant, and let people check the parse tree if they want (there is a start of a something in luqum.check
). This may enables more freedom in extending the language (which is one of the goal of luqum).
That said your case is of course a bit weird, and could be a good candidate to catch. If you want to fix that (with test) PR is welcome.
Just a wrap up, looking more closely.
The first problem is the column after http, which makes http being interpreted like a field you want to search in. This is perfectly normal, and we can't correct that.
The second, is that we ignore single and double quotes if they are in the middle of an expression, this is maybe where we are too liberal.
However for now I close. You can eventually reopen @fabiopedrosa
I was under the impression luqum would be able to catch syntax issues, but is that not the case?
just prints:
which is not accepted syntax for ES.