Lines Matching refs:look
1936 char_u *look; in find_match() local
1960 look = cin_skipcomment(ml_get_curline()); in find_match()
1961 if (cin_iselse(look) in find_match()
1962 || cin_isif(look) in find_match()
1963 || cin_isdo(look) // XXX in find_match()
1964 || cin_iswhileofdo(look, curwin->w_cursor.lnum)) in find_match()
1987 look = cin_skipcomment(ml_get_curline()); in find_match()
1988 if (cin_iselse(look)) in find_match()
1990 mightbeif = cin_skipcomment(look + 4); in find_match()
1998 if (cin_iswhileofdo(look, curwin->w_cursor.lnum)) in find_match()
2005 look = cin_skipcomment(ml_get_curline()); in find_match()
2006 if (cin_isif(look)) in find_match()
2016 if (cin_isdo(look)) in find_match()
2055 char_u *look; in get_c_indent() local
2224 look = skipwhite(ml_get(curwin->w_cursor.lnum - 1)); in get_c_indent()
2225 if (STRNCMP(look, lead_start, lead_start_len) == 0) in get_c_indent()
2227 else if (STRNCMP(look, lead_middle, in get_c_indent()
2292 look = start + comment_pos->col + 2; // skip / and * in get_c_indent()
2293 if (*look != NUL) // if something after it in get_c_indent()
2294 comment_pos->col = (colnr_T)(skipwhite(look) - start); in get_c_indent()
2298 if (curbuf->b_ind_in_comment2 || *look == NUL) in get_c_indent()
2415 amount = skip_label(our_paren_pos.lnum, &look); in get_c_indent()
2416 look = skipwhite(look); in get_c_indent()
2417 if (*look == '(') in get_c_indent()
2427 look_col = (int)(look - line); in get_c_indent()
2437 look = ml_get(our_paren_pos.lnum) + look_col; in get_c_indent()
2441 || (!curbuf->b_ind_unclosed_noignore && *look == '(' in get_c_indent()
2509 && *look == '(' && ignore_paren_col == 0)) in get_c_indent()
2583 look = skipwhite(start); in get_c_indent()
2584 if (*look == '{') in get_c_indent()
3773 if (*(look = skipwhite(l)) == ';' && cin_nocode(look + 1)) in get_c_indent()
3779 look = ml_get(--curwin->w_cursor.lnum); in get_c_indent()
3780 if (!(cin_nocode(look) || cin_ispreproc_cont( in get_c_indent()
3781 &look, &curwin->w_cursor.lnum, &amount))) in get_c_indent()
3785 && cin_ends_in(look, (char_u *)"}", NULL)) in get_c_indent()
3881 char_u *look; in in_cinkeys() local
3895 look = curbuf->b_p_indk; // 'indentexpr' set: use 'indentkeys' in in_cinkeys()
3898 look = curbuf->b_p_cink; // 'indentexpr' empty: use 'cinkeys' in in_cinkeys()
3899 while (*look) in in_cinkeys()
3905 case '*': try_match = (*look == '*'); break; in in_cinkeys()
3906 case '!': try_match = (*look == '!'); break; in in_cinkeys()
3907 default: try_match = (*look != '*'); break; in in_cinkeys()
3909 if (*look == '*' || *look == '!') in in_cinkeys()
3910 ++look; in in_cinkeys()
3914 if (*look == '0') in in_cinkeys()
3919 ++look; in in_cinkeys()
3925 if (*look == '^' in in_cinkeys()
3927 && (Ctrl_chr(look[1]) != 0) in in_cinkeys()
3929 && look[1] >= '?' && look[1] <= '_' in in_cinkeys()
3933 if (try_match && keytyped == Ctrl_chr(look[1])) in in_cinkeys()
3935 look += 2; in in_cinkeys()
3939 else if (*look == 'o') in in_cinkeys()
3943 ++look; in in_cinkeys()
3945 else if (*look == 'O') in in_cinkeys()
3949 ++look; in in_cinkeys()
3954 else if (*look == 'e') in in_cinkeys()
3963 ++look; in in_cinkeys()
3969 else if (*look == ':') in in_cinkeys()
3991 ++look; in in_cinkeys()
3996 else if (*look == '<') in in_cinkeys()
4003 if (vim_strchr((char_u *)"<>!*oOe0:", look[1]) != NULL in in_cinkeys()
4004 && keytyped == look[1]) in in_cinkeys()
4007 if (keytyped == get_special_key_code(look + 1)) in in_cinkeys()
4010 while (*look && *look != '>') in in_cinkeys()
4011 look++; in in_cinkeys()
4012 while (*look == '>') in in_cinkeys()
4013 look++; in in_cinkeys()
4017 else if (*look == '=' && look[1] != ',' && look[1] != NUL) in in_cinkeys()
4019 ++look; in in_cinkeys()
4020 if (*look == '~') in in_cinkeys()
4023 ++look; in in_cinkeys()
4027 p = vim_strchr(look, ','); in in_cinkeys()
4029 p = look + STRLEN(look); in in_cinkeys()
4031 && curwin->w_cursor.col >= (colnr_T)(p - look)) in in_cinkeys()
4057 if (s + (p - look) <= line + curwin->w_cursor.col in in_cinkeys()
4059 ? MB_STRNICMP(s, look, p - look) in in_cinkeys()
4060 : STRNCMP(s, look, p - look)) == 0) in in_cinkeys()
4069 if ((curwin->w_cursor.col == (colnr_T)(p - look) in in_cinkeys()
4070 || !vim_iswordc(line[-(p - look) - 1])) in in_cinkeys()
4072 ? MB_STRNICMP(line - (p - look), look, p - look) in in_cinkeys()
4073 : STRNCMP(line - (p - look), look, p - look)) in in_cinkeys()
4082 (int)(curwin->w_cursor.col - (p - look))) in in_cinkeys()
4088 look = p; in in_cinkeys()
4094 if (try_match && *look == keytyped) in in_cinkeys()
4096 if (*look != NUL) in in_cinkeys()
4097 ++look; in in_cinkeys()
4101 look = skip_to_option_part(look); in in_cinkeys()