Lines Matching refs:col
168 for (p = line; *p && (colnr_T)(p - line) < pos->col; ++p) in find_start_comment()
170 if ((colnr_T)(p - line) <= pos->col) in find_start_comment()
204 for (p = line; *p && (colnr_T)(p - line) < pos->col; ++p) in find_start_rawstring()
206 if ((colnr_T)(p - line) <= pos->col) in find_start_rawstring()
362 pos.col = (int)(p - line); in find_line_comment()
648 curwin->w_cursor.col = 0; in cin_islabel()
882 colnr_T col; in get_indent_nolabel() local
890 fp.col = (colnr_T)(p - l); in get_indent_nolabel()
892 getvcol(curwin, &fp, &col, NULL, NULL); in get_indent_nolabel()
893 return (int)col; in get_indent_nolabel()
944 colnr_T col; in cin_first_id_amount() local
975 fp.col = (colnr_T)(p - line); in cin_first_id_amount()
976 getvcol(curwin, &fp, &col, NULL, NULL); in cin_first_id_amount()
977 return (int)col; in cin_first_id_amount()
994 colnr_T col; in cin_get_equal_amount() local
1023 fp.col = (colnr_T)(s - line); in cin_get_equal_amount()
1024 getvcol(curwin, &fp, &col, NULL, NULL); in cin_get_equal_amount()
1025 return (int)col; in cin_get_equal_amount()
1040 while (*p && (colnr_T)(p - line) < trypos->col) in cin_skip2pos()
1070 if ((colnr_T)cin_skip2pos(trypos) > trypos->col) in find_match_char()
1076 curwin->w_cursor.col = 0; // XXX in find_match_char()
1126 curwin->w_cursor.col = 0; // default is start of line in find_last_paren()
1140 curwin->w_cursor.col = i; in find_last_paren()
1303 curwin->w_cursor.col = 0; in cin_iswhileofdo()
1308 ++curwin->w_cursor.col; in cin_iswhileofdo()
1395 curwin->w_cursor.col = i; in cin_iswhileofdo_end()
1452 pos->col = 0; in cin_is_cpp_baseclass()
1535 pos->col = 0; in cin_is_cpp_baseclass()
1576 else if (pos->col == 0) in cin_is_cpp_baseclass()
1583 pos->col = (colnr_T)(s - line); in cin_is_cpp_baseclass()
1588 pos->col = 0; in cin_is_cpp_baseclass()
1601 get_baseclass_amount(int col) in get_baseclass_amount() argument
1607 if (col == 0) in get_baseclass_amount()
1618 curwin->w_cursor.col = col; in get_baseclass_amount()
1653 if ((colnr_T)cin_skip2pos(trypos) == trypos->col in find_start_brace()
1682 : trypos->col < tryposBrace->col)) in find_match_paren_after_brace()
1953 curwin->w_cursor.col = 0; in find_match()
1958 curwin->w_cursor.col = 0; in find_match()
2040 colnr_T col; in get_c_indent() local
2094 && curwin->w_cursor.col < (colnr_T)STRLEN(linecopy) in get_c_indent()
2095 && linecopy[curwin->w_cursor.col] == ')') in get_c_indent()
2096 linecopy[curwin->w_cursor.col] = NUL; in get_c_indent()
2102 curwin->w_cursor.col = 0; in get_c_indent()
2151 getvcol(curwin, trypos, &col, NULL, NULL); in get_c_indent()
2152 amount = col; in get_c_indent()
2171 getvcol(curwin, comment_pos, &col, NULL, NULL); in get_c_indent()
2172 amount = col; in get_c_indent()
2235 else if (STRNCMP(ml_get(comment_pos->lnum) + comment_pos->col, in get_c_indent()
2292 look = start + comment_pos->col + 2; // skip / and * in get_c_indent()
2294 comment_pos->col = (colnr_T)(skipwhite(look) - start); in get_c_indent()
2296 getvcol(curwin, comment_pos, &col, NULL, NULL); in get_c_indent()
2297 amount = col; in get_c_indent()
2326 : trypos->col < tryposBrace->col) in get_c_indent()
2365 && trypos->col == our_paren_pos.col) in get_c_indent()
2402 curwin->w_cursor.col = outermost.col; in get_c_indent()
2412 cin_is_if_for_while_before_offset(line, &outermost.col); in get_c_indent()
2428 curwin->w_cursor.col = look_col + 1; in get_c_indent()
2433 && trypos->col < our_paren_pos.col) in get_c_indent()
2434 ignore_paren_col = trypos->col + 1; in get_c_indent()
2461 for (col = 0; col < our_paren_pos.col; ++col) in get_c_indent()
2463 switch (l[col]) in get_c_indent()
2476 our_paren_pos.col = 0; in get_c_indent()
2480 our_paren_pos.col++; in get_c_indent()
2483 col = our_paren_pos.col + 1; in get_c_indent()
2484 while (VIM_ISWHITE(l[col])) in get_c_indent()
2485 col++; in get_c_indent()
2486 if (l[col] != NUL) // In case of trailing space in get_c_indent()
2487 our_paren_pos.col = col; in get_c_indent()
2489 our_paren_pos.col++; in get_c_indent()
2495 if (our_paren_pos.col > 0) in get_c_indent()
2497 getvcol(curwin, &our_paren_pos, &col, NULL, NULL); in get_c_indent()
2498 if (cur_amount > (int)col) in get_c_indent()
2499 cur_amount = col; in get_c_indent()
2518 col = our_paren_pos.col; in get_c_indent()
2519 while ((int)our_paren_pos.col > ignore_paren_col) in get_c_indent()
2521 --our_paren_pos.col; in get_c_indent()
2525 col = our_paren_pos.col; in get_c_indent()
2528 col = MAXCOL; in get_c_indent()
2535 if (col == MAXCOL) in get_c_indent()
2540 curwin->w_cursor.col = col; in get_c_indent()
2586 getvcol(curwin, trypos, &col, NULL, NULL); in get_c_indent()
2587 amount = col; in get_c_indent()
2732 curwin->w_cursor.col = 0; in get_c_indent()
2770 curwin->w_cursor.col = 0; in get_c_indent()
2826 curwin->w_cursor.col = 0; in get_c_indent()
2881 curwin->w_cursor.col = 0; in get_c_indent()
2916 curwin->w_cursor.col = 0; in get_c_indent()
3029 curwin->w_cursor.col = 0; in get_c_indent()
3078 cache_cpp_baseclass.lpos.col); in get_c_indent()
3161 && trypos->col < tryposBrace->col))) in get_c_indent()
3181 curwin->w_cursor.col = 0; in get_c_indent()
3199 curwin->w_cursor.col = 0; in get_c_indent()
3299 curwin->w_cursor.col = in get_c_indent()
3543 curwin->w_cursor.col = 0; in get_c_indent()
3602 curwin->w_cursor.col = 0; in get_c_indent()
3663 curwin->w_cursor.col = 0; in get_c_indent()
3672 curwin->w_cursor.col = 0; in get_c_indent()
3687 amount = get_baseclass_amount(cache_cpp_baseclass.lpos.col); in get_c_indent()
3729 curwin->w_cursor.col = 0; in get_c_indent()
3956 if (try_match && keytyped == 'e' && curwin->w_cursor.col >= 4) in in_cinkeys()
3959 if (skipwhite(p) == p + curwin->w_cursor.col - 4 && in in_cinkeys()
3960 STRNCMP(p + curwin->w_cursor.col - 4, "else", 4) == 0) in in_cinkeys()
3978 if (curwin->w_cursor.col > 2 in in_cinkeys()
3979 && p[curwin->w_cursor.col - 1] == ':' in in_cinkeys()
3980 && p[curwin->w_cursor.col - 2] == ':') in in_cinkeys()
3982 p[curwin->w_cursor.col - 1] = ' '; in in_cinkeys()
3986 p[curwin->w_cursor.col - 1] = ':'; in in_cinkeys()
4031 && curwin->w_cursor.col >= (colnr_T)(p - look)) in in_cinkeys()
4046 for (s = line + curwin->w_cursor.col; s > line; s = n) in in_cinkeys()
4054 for (s = line + curwin->w_cursor.col; s > line; --s) in in_cinkeys()
4057 if (s + (p - look) <= line + curwin->w_cursor.col in in_cinkeys()
4069 if ((curwin->w_cursor.col == (colnr_T)(p - look) in in_cinkeys()
4082 (int)(curwin->w_cursor.col - (p - look))) in in_cinkeys()