prev_type is only compared against SINGLE_QUOTE, so there will be no
behavioural differences. However, maintaining the state that we've just
seen something we are prepared to search for (very loosely, a "letter")
rather than something that we threw away (word breaks) will be important
when it comes to explicit prefix query parsing.
Signed-off-by: Phil Carmody <phil@dovecot.fi>
start = i + char_size;
shift_prev_type(tok, LETTER_TYPE_SINGLE_QUOTE);
} else {
- shift_prev_type(tok, LETTER_TYPE_NONE);
+ /* Lie slightly about the type. This is anything that
+ we're not skipping or cutting on and are prepared to
+ search for - it's "as good as" a letter. */
+ shift_prev_type(tok, LETTER_TYPE_ALETTER);
}
}
/* word boundary not found yet */