Lines Matching refs:comment_pos
230 pos_T *comment_pos; in ind_find_start_CORS() local
233 comment_pos = find_start_comment(curbuf->b_ind_maxcomment); in ind_find_start_CORS()
234 if (comment_pos != NULL) in ind_find_start_CORS()
238 comment_pos_copy = *comment_pos; in ind_find_start_CORS()
239 comment_pos = &comment_pos_copy; in ind_find_start_CORS()
245 if (comment_pos == NULL || (rs_pos != NULL in ind_find_start_CORS()
246 && LT_POS(*rs_pos, *comment_pos))) in ind_find_start_CORS()
252 return comment_pos; in ind_find_start_CORS()
2044 pos_T *comment_pos; in get_c_indent() local
2108 comment_pos = ind_find_start_comment(); in get_c_indent()
2109 if (comment_pos != NULL) in get_c_indent()
2112 tryposCopy = *comment_pos; in get_c_indent()
2113 comment_pos = &tryposCopy; 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()
2158 if (!cin_iscomment(theline) && comment_pos != NULL) // XXX in get_c_indent()
2171 getvcol(curwin, comment_pos, &col, NULL, NULL); in get_c_indent()
2235 else if (STRNCMP(ml_get(comment_pos->lnum) + comment_pos->col, in get_c_indent()
2280 for (lnum = cur_curpos.lnum - 1; lnum > comment_pos->lnum; --lnum) in get_c_indent()
2291 start = ml_get(comment_pos->lnum); 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()