Skip to content

Parser fails at double quote character #98

@tehtris-siem

Description

@tehtris-siem

Hi,

I parsed the expression Category:"Logon and expected SearchField('Category', Word('"Logon')).

However i received luqum.exceptions.IllegalCharacterError.

I parsed the expression Category:Logon" and expected luqum.exceptions.IllegalCharacterError.

However i received SearchField('Category', Word('Logon"')).

from luqum.parser import parser

# No traceback
tree = parser.parse('Category:Logon"')
print(repr(tree))

# Traceback
tree = parser.parse('Category:"Logon')
print(repr(tree))

Is this an expected behavior ?

Shouldn't both expressions react in the same way ?

Is it related to this issue ? #86

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions