Allow quoted string with ' in query parser

This commit is contained in:
Mehdi Abaakouk 2015-09-03 15:37:29 +02:00
parent d9571fdecd
commit cc81d69917

View File

@ -31,7 +31,7 @@ uuid = pp.Combine(hex_string(8) + ("-" + hex_string(4)) * 3 +
number = r"[+-]?\d+(:?\.\d*)?(:?[eE][+-]?\d+)?"
number = pp.Regex(number).setParseAction(lambda t: float(t[0]))
identifier = pp.Word(pp.alphas, pp.alphanums + "_")
quoted_string = pp.QuotedString('"')
quoted_string = pp.QuotedString('"') | pp.QuotedString("'")
comparison_term = pp.Forward()
in_list = pp.Group(pp.Suppress('[') +
pp.Optional(pp.delimitedList(comparison_term)) +