diff options
Diffstat (limited to 'apps/plugins/searchengine/parser.c')
-rw-r--r-- | apps/plugins/searchengine/parser.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/plugins/searchengine/parser.c b/apps/plugins/searchengine/parser.c index cbedeb3041..ad2e4ee538 100644 --- a/apps/plugins/searchengine/parser.c +++ b/apps/plugins/searchengine/parser.c | |||
@@ -148,11 +148,19 @@ unsigned char *parseCompareString() { | |||
148 | rb->snprintf(errormsg,250,"'%d' found where STRING/STRINGID expected\n",currentToken->kind); | 148 | rb->snprintf(errormsg,250,"'%d' found where STRING/STRINGID expected\n",currentToken->kind); |
149 | return 0; | 149 | return 0; |
150 | } | 150 | } |
151 | 151 | ||
152 | contains=currentToken->kind==TOKEN_CONTAINS; | ||
153 | if(currentToken->kind==TOKEN_CONTAINS || | 152 | if(currentToken->kind==TOKEN_CONTAINS || |
154 | currentToken->kind==TOKEN_EQUALS) | 153 | currentToken->kind==TOKEN_EQUALS) { |
154 | if(currentToken->kind==TOKEN_CONTAINS) { | ||
155 | contains=1; | ||
156 | PUTS("Contains"); | ||
157 | } | ||
158 | else { | ||
159 | contains=0; | ||
160 | PUTS("Equals"); | ||
161 | } | ||
155 | parser_acceptIt(); | 162 | parser_acceptIt(); |
163 | } | ||
156 | else { | 164 | else { |
157 | syntaxerror=1; | 165 | syntaxerror=1; |
158 | rb->snprintf(errormsg,250,"'%d' found where CONTAINS/EQUALS expected\n",currentToken->kind); | 166 | rb->snprintf(errormsg,250,"'%d' found where CONTAINS/EQUALS expected\n",currentToken->kind); |