-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser fails at double quote character #98
Comments
Yes it might be related. |
Hi, any update about a potential fix of this issue? |
Sorry I don't have time to work on it personally right now (maybe at beginning of 2023. If you want to try to tackle it, I can take the time to point you in the right direction. |
hi @alexgarel -- I'm interested in trying to fix this issue. Any chance you could point me in the right direction? Thanks! |
Hi @ahankinson thanks for your help ! It all happens in https://github.com/jurismarches/luqum/blob/master/luqum/parser.py We use PLY (by the way we could try to upgrade the version). You will have to understand PLY's basis. Maybe it's about refining the TERM_RE regexp ? But it might create ambiguity in the parser (how to understand So I would rather say, you have to escape the double quote in this case (but it's not the job of luqum to do that). Like Of course an improvement would be to give some hint about escaping the double quote as we get a IllegalCharacterError, and we see this pattern in the expression (but PLY does not give much context on errors). Note that single quote is not a valid phrase delimiter (see doc) |
Hi,
I parsed the expression
Category:"Logon
and expectedSearchField('Category', Word('"Logon'))
.However i received
luqum.exceptions.IllegalCharacterError
.I parsed the expression
Category:Logon"
and expectedluqum.exceptions.IllegalCharacterError
.However i received
SearchField('Category', Word('Logon"'))
.Is this an expected behavior ?
Shouldn't both expressions react in the same way ?
Is it related to this issue ? #86
The text was updated successfully, but these errors were encountered: