Lines Matching refs:trypos
638 pos_T *trypos; in cin_islabel() local
649 if ((trypos = ind_find_start_CORS(NULL)) != NULL) // XXX in cin_islabel()
650 curwin->w_cursor = *trypos; in cin_islabel()
1033 cin_skip2pos(pos_T *trypos) in cin_skip2pos() argument
1039 p = line = ml_get(trypos->lnum); in cin_skip2pos()
1040 while (*p && (colnr_T)(p - line) < trypos->col) in cin_skip2pos()
1060 pos_T *trypos; in find_match_char() local
1067 if ((trypos = findmatchlimit(NULL, c, 0, ind_maxp_wk)) != NULL) in find_match_char()
1070 if ((colnr_T)cin_skip2pos(trypos) > trypos->col) in find_match_char()
1072 ind_maxp_wk = ind_maxparen - (int)(cursor_save.lnum - trypos->lnum); in find_match_char()
1075 curwin->w_cursor = *trypos; in find_match_char()
1079 trypos = NULL; in find_match_char()
1085 pos_copy = *trypos; // copy trypos, findmatch will change it in find_match_char()
1086 trypos = &pos_copy; in find_match_char()
1087 curwin->w_cursor = *trypos; in find_match_char()
1097 trypos = NULL; in find_match_char()
1102 return trypos; in find_match_char()
1168 pos_T *trypos; in cin_isfuncdecl() local
1178 && (trypos = find_match_paren(curbuf->b_ind_maxparen)) != NULL) in cin_isfuncdecl()
1180 lnum = trypos->lnum; in cin_isfuncdecl()
1293 pos_T *trypos; in cin_iswhileofdo() local
1310 if ((trypos = findmatchlimit(NULL, 0, 0, in cin_iswhileofdo()
1312 && *cin_skipcomment(ml_get_pos(trypos) + 1) == ';') in cin_iswhileofdo()
1377 pos_T *trypos; in cin_iswhileofdo_end() local
1396 trypos = find_match_paren(curbuf->b_ind_maxparen); in cin_iswhileofdo_end()
1397 if (trypos != NULL) in cin_iswhileofdo_end()
1399 s = cin_skipcomment(ml_get(trypos->lnum)); in cin_iswhileofdo_end()
1404 curwin->w_cursor.lnum = trypos->lnum; in cin_iswhileofdo_end()
1605 pos_T *trypos; in get_baseclass_amount() local
1611 && (trypos = find_match_paren(curbuf->b_ind_maxparen)) != NULL) in get_baseclass_amount()
1612 amount = get_indent_lnum(trypos->lnum); // XXX in get_baseclass_amount()
1641 pos_T *trypos; in find_start_brace() local
1646 while ((trypos = findmatchlimit(NULL, '{', FM_BLOCKSTOP, 0)) != NULL) in find_start_brace()
1648 pos_copy = *trypos; // copy pos_T, next findmatch will change it in find_start_brace()
1649 trypos = &pos_copy; in find_start_brace()
1650 curwin->w_cursor = *trypos; in find_start_brace()
1653 if ((colnr_T)cin_skip2pos(trypos) == trypos->col in find_start_brace()
1660 return trypos; in find_start_brace()
1671 pos_T *trypos = find_match_paren(ind_maxparen); in find_match_paren_after_brace() local
1673 if (trypos != NULL) in find_match_paren_after_brace()
1680 && (trypos->lnum != tryposBrace->lnum in find_match_paren_after_brace()
1681 ? trypos->lnum < tryposBrace->lnum in find_match_paren_after_brace()
1682 : trypos->col < tryposBrace->col)) in find_match_paren_after_brace()
1683 trypos = NULL; in find_match_paren_after_brace()
1685 return trypos; in find_match_paren_after_brace()
2043 pos_T *trypos; in get_c_indent() local
2115 trypos = find_start_rawstring(curbuf->b_ind_maxcomment); in get_c_indent()
2116 if (trypos != NULL && (comment_pos == NULL in get_c_indent()
2117 || LT_POS(*trypos, *comment_pos))) in get_c_indent()
2148 && (trypos = find_line_comment()) != NULL) // XXX in get_c_indent()
2151 getvcol(curwin, trypos, &col, NULL, NULL); in get_c_indent()
2307 && (trypos = find_match_char('[', curbuf->b_ind_maxparen)) != NULL) in get_c_indent()
2310 amount = get_indent_lnum(trypos->lnum); in get_c_indent()
2315 if (((trypos = find_match_paren(curbuf->b_ind_maxparen)) != NULL in get_c_indent()
2318 || trypos != NULL) in get_c_indent()
2320 if (trypos != NULL && tryposBrace != NULL) in get_c_indent()
2324 if (trypos->lnum != tryposBrace->lnum in get_c_indent()
2325 ? trypos->lnum < tryposBrace->lnum in get_c_indent()
2326 : trypos->col < tryposBrace->col) in get_c_indent()
2327 trypos = NULL; in get_c_indent()
2332 if (trypos != NULL) in get_c_indent()
2344 our_paren_pos = *trypos; in get_c_indent()
2355 if ((trypos = ind_find_start_CORS(NULL)) != NULL) in get_c_indent()
2357 lnum = trypos->lnum + 1; in get_c_indent()
2362 if ((trypos = find_match_paren( in get_c_indent()
2364 && trypos->lnum == our_paren_pos.lnum in get_c_indent()
2365 && trypos->col == our_paren_pos.col) in get_c_indent()
2398 trypos = &our_paren_pos; in get_c_indent()
2400 outermost = *trypos; in get_c_indent()
2404 trypos = find_match_paren(curbuf->b_ind_maxparen); in get_c_indent()
2405 } while (trypos && trypos->lnum == outermost.lnum); in get_c_indent()
2429 if ((trypos = findmatchlimit(NULL, ')', 0, in get_c_indent()
2432 && trypos->lnum == our_paren_pos.lnum 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()
2575 trypos = tryposBrace; in get_c_indent()
2576 ourscope = trypos->lnum; in get_c_indent()
2586 getvcol(curwin, trypos, &col, NULL, NULL); in get_c_indent()
2603 && (trypos = find_match_paren(curbuf->b_ind_maxparen)) in get_c_indent()
2605 lnum = trypos->lnum; in get_c_indent()
2766 trypos = ind_find_start_CORS(NULL); in get_c_indent()
2767 if (trypos != NULL) in get_c_indent()
2769 curwin->w_cursor.lnum = trypos->lnum + 1; in get_c_indent()
2815 trypos = NULL; in get_c_indent()
2817 trypos = find_match_paren( in get_c_indent()
2820 if (trypos == NULL && find_last_paren(l, '{', '}')) in get_c_indent()
2821 trypos = find_start_brace(); in get_c_indent()
2823 if (trypos != NULL) in get_c_indent()
2825 curwin->w_cursor.lnum = trypos->lnum + 1; in get_c_indent()
2877 trypos = ind_find_start_CORS(NULL); in get_c_indent()
2878 if (trypos != NULL) in get_c_indent()
2880 curwin->w_cursor.lnum = trypos->lnum + 1; in get_c_indent()
2913 if ((trypos = ind_find_start_CORS(&raw_string_start)) != NULL) in get_c_indent()
2915 curwin->w_cursor.lnum = trypos->lnum + 1; in get_c_indent()
2959 if ((trypos = find_start_brace()) == NULL in get_c_indent()
2960 || trypos->lnum == ourscope) in get_c_indent()
3026 && (trypos = find_start_brace()) != NULL) in get_c_indent()
3028 curwin->w_cursor.lnum = trypos->lnum + 1; in get_c_indent()
3158 trypos = find_match_paren(corr_ind_maxparen(&cur_curpos)); in get_c_indent()
3159 if (trypos != NULL && (trypos->lnum < tryposBrace->lnum in get_c_indent()
3160 || (trypos->lnum == tryposBrace->lnum in get_c_indent()
3161 && trypos->col < tryposBrace->col))) in get_c_indent()
3162 trypos = NULL; in get_c_indent()
3166 if (trypos == NULL && terminated == ',' in get_c_indent()
3168 trypos = find_start_brace(); in get_c_indent()
3170 if (trypos != NULL) in get_c_indent()
3176 curwin->w_cursor = *trypos; in get_c_indent()
3302 if ((trypos = find_start_brace()) == NULL in get_c_indent()
3303 || find_match(LOOKFOR_IF, trypos->lnum) in get_c_indent()
3390 trypos = find_match_char('[', in get_c_indent()
3392 if (trypos != NULL) in get_c_indent()
3394 if (trypos->lnum in get_c_indent()
3401 ourscope = trypos->lnum; in get_c_indent()
3531 && (trypos = find_match_paren( in get_c_indent()
3538 curwin->w_cursor = *trypos; in get_c_indent()
3582 if ((trypos = find_start_brace()) == NULL in get_c_indent()
3583 || find_match(LOOKFOR_IF, trypos->lnum) in get_c_indent()
3593 && (trypos = find_start_brace()) != NULL) in get_c_indent()
3595 curwin->w_cursor = *trypos; in get_c_indent()
3669 if ((trypos = ind_find_start_CORS(NULL)) != NULL) in get_c_indent()
3671 curwin->w_cursor.lnum = trypos->lnum + 1; in get_c_indent()
3714 && (trypos = find_match_paren( in get_c_indent()
3716 curwin->w_cursor = *trypos; in get_c_indent()
3821 if ((trypos = find_match_paren(curbuf->b_ind_maxparen)) != NULL) in get_c_indent()
3822 curwin->w_cursor = *trypos; in get_c_indent()