Skip to content

Commit

Permalink
Break a long line
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 17, 2014
1 parent a8e6947 commit 08bf25d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/token_cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ grn_token_cursor_next(grn_ctx *ctx, grn_token_cursor *token_cursor)
}
}
#undef SKIP_FLAGS
if (status & GRN_TOKENIZER_TOKEN_FORCE_PREFIX) { token_cursor->force_prefix = GRN_TRUE; }
if (status & GRN_TOKENIZER_TOKEN_FORCE_PREFIX) {
token_cursor->force_prefix = GRN_TRUE;
}
if (token_cursor->curr_size == 0) {
char tokenizer_name[GRN_TABLE_MAX_KEY_SIZE];
int tokenizer_name_length;
Expand All @@ -236,9 +238,14 @@ grn_token_cursor_next(grn_ctx *ctx, grn_token_cursor *token_cursor)
}
if (status & GRN_TOKENIZER_TOKEN_UNMATURED) {
if (status & GRN_TOKENIZER_TOKEN_OVERLAP) {
if (token_cursor->mode == GRN_TOKEN_GET) { token_cursor->pos++; continue; }
if (token_cursor->mode == GRN_TOKEN_GET) {
token_cursor->pos++;
continue;
}
} else {
if (status & GRN_TOKENIZER_TOKEN_LAST) { token_cursor->force_prefix = GRN_TRUE; }
if (status & GRN_TOKENIZER_TOKEN_LAST) {
token_cursor->force_prefix = GRN_TRUE;
}
}
}
} else {
Expand Down

0 comments on commit 08bf25d

Please sign in to comment.