Ticket #447: qp-and-hate.patch
File qp-and-hate.patch, 667 bytes (added by , 15 years ago) |
---|
-
queryparser/queryparser.lemony
710 710 break; 711 711 } 712 712 if (mode == DEFAULT && (flags & FLAG_LOVEHATE)) { 713 Parse(pParser, (ch == '+' ? LOVE : HATE), NULL, &state); 713 int token; 714 if (ch == '+') { 715 token = LOVE; 716 } else if (last_was_operator) { 717 token = NOT; 718 } else { 719 token = HATE; 720 } 721 Parse(pParser, token, NULL, &state); 714 722 goto just_had_operator; 715 723 } 716 724 // Need to prevent the term after a LOVE or HATE starting a