matchtree: special case word search (#526)
A common search Zoekt gets from Sourcegraph is "\bLITERAL\b". With this PR we avoid the regex engine for these type of queries and provide something faster.
Local benchmarks show that the new code runs 4.8x faster for select queries.
Co-authored-by: Stefan Hengl <stefan@sourcegraph.com>