pike.git / lib / modules / Search.pmod / Grammar.pmod / DefaultParser.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Grammar.pmod/DefaultParser.pike:256:       while (!(< TOKEN_PHRASE,    TOKEN_WORD,    TOKEN_END >) [ peek()[0] ])    advance(); // ... ????????? or something smarter ?????       if (peek()[0] == TOKEN_PHRASE    || peek()[0] == TOKEN_WORD) {    string phrase = peek()[1];    advance(); -  array(string) words = splitPhrase(phrase); +  array(string) words = Unicode.split_words_and_normalize(phrase);    if (!words || !sizeof(words))    return;    if (sizeof(words) == 1)    switch (prefix) {    case '+': node->plusWords += words; break;    case '-': node->minusWords += words; break;    default: node->words += words; break;    }    else if (sizeof(words) > 1)    switch (prefix) {