expression_grammar X3 - allow backtracking on '<' operator so we can parse '<>' correctly
This commit is contained in:
parent
9a109bbf7d
commit
64f5de14b1
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ namespace mapnik { namespace grammar {
|
|||
auto const relational_expression_def = additive_expression[do_assign] >
|
||||
*( ( (lit("<=") | lit("le")) > additive_expression [do_less_equal])
|
||||
|
|
||||
( (lit("<") | lit("lt")) > additive_expression[do_less])
|
||||
( (lit("<") | lit("lt")) >> additive_expression[do_less]) // allow backtracking to be able handle '<' and '<>' correctly
|
||||
|
|
||||
( (lit(">=") | lit("ge")) > additive_expression [do_greater_equal])
|
||||
|
|
||||
|
|
Loading…
Add table
Reference in a new issue