[josm-dev] Search and | ?

Ævar Arnfjörð Bjarmason avarab at gmail.com
Sun Dec 21 00:24:39 GMT 2008


On Sat, Dec 20, 2008 at 9:02 PM, Russ Nelson <nelson at crynwr.com> wrote:
> Hi.  Should "|" be used to separate two "or" terms of a search?  Or is
> "OR" the only token?
>
> I ask because "|" is not recognized by the tokenizer as a token, and
> yet http://wiki.openstreetmap.org/wiki/JOSM/Search_function (used to
> until I changed it) claim that "|" could be used to separate two "or"
> terms of a search.
>
> Just wondering: should I fix the code or leave the documentation fixed?

The code, | should work as OR but doesn't. There's a bug filed for
this (which I didn't find).

I looked at it for a bit recently but didn't manage to fix it before
getting distracted with other things, but I suspect one of the
tokenizer rules is being too agressive and slurping up "foo|bar" as a
literal token or something like that. At least that's how it gets
parsed IIRC.




More information about the josm-dev mailing list