Skip to content

Commit

Permalink
More fixes for #484
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Nov 26, 2023
1 parent df50860 commit eaf96ce
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/lib/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -1490,14 +1490,26 @@ term: ANY { /* this is an unconditionally true expression, as a filter applies i
}

// TODO:
// ugly work around to match geo location "IN" to separate from token 'in'
// ugly quick work around to match geo location "IN" to separate from token 'in'
// fix needs redesign of the filter code
| dqual GEO IN {
int slot = AddGeo($1.direction, "IN");
if ( slot == 0 )
YYABORT;
$$.self = slot;
}
dqual GEO ID {
int slot = AddGeo($1.direction, "ID");
if ( slot == 0 )
YYABORT;
$$.self = slot;
}
dqual GEO LT {
int slot = AddGeo($1.direction, "LT");
if ( slot == 0 )
YYABORT;
$$.self = slot;
}

| dqual GEO STRING {
int slot = AddGeo($1.direction, $3);
Expand Down

0 comments on commit eaf96ce

Please sign in to comment.