Lines Matching refs:l

555     int l = (int)STRLEN(word);  in cin_starts_with()  local
557 return (STRNCMP(s, word, l) == 0 && !vim_isIDc(s[l])); in cin_starts_with()
719 int i, l; in cin_isinit() local
723 l = (int)strlen(skip[i]); in cin_isinit()
726 s = cin_skipcomment(s + l); in cin_isinit()
727 l = 0; in cin_isinit()
731 if (l != 0) in cin_isinit()
851 after_label(char_u *l) in after_label() argument
853 for ( ; *l; ++l) in after_label()
855 if (*l == ':') in after_label()
857 if (l[1] == ':') // skip over "::" for C++ in after_label()
858 ++l; in after_label()
859 else if (!cin_iscase(l + 1, FALSE)) in after_label()
862 else if (*l == '\'' && l[1] && l[2] == '\'') in after_label()
863 l += 2; // skip over 'x' in after_label()
865 if (*l == NUL) in after_label()
867 l = cin_skipcomment(l + 1); in after_label()
868 if (*l == NUL) in after_label()
870 return l; in after_label()
880 char_u *l; in get_indent_nolabel() local
885 l = ml_get(lnum); in get_indent_nolabel()
886 p = after_label(l); in get_indent_nolabel()
890 fp.col = (colnr_T)(p - l); in get_indent_nolabel()
905 char_u *l; in skip_label() local
911 l = ml_get_curline(); in skip_label()
913 if (cin_iscase(l, FALSE) || cin_isscopedecl(l) || cin_islabel()) in skip_label()
916 l = after_label(ml_get_curline()); in skip_label()
917 if (l == NULL) // just in case in skip_label()
918 l = ml_get_curline(); in skip_label()
923 l = ml_get_curline(); in skip_label()
925 *pp = l; in skip_label()
1120 find_last_paren(char_u *l, int start, int end) in find_last_paren() argument
1128 for (i = 0; l[i] != NUL; i++) in find_last_paren()
1130 i = (int)(cin_skipcomment(l + i) - l); // ignore parens in comments in find_last_paren()
1131 i = (int)(skip_string(l + i) - l); // ignore parens in quotes in find_last_paren()
1132 if (l[i] == start) in find_last_paren()
1134 else if (l[i] == end) in find_last_paren()
1712 char_u *l; in parse_cino() local
1853 l = p++; in parse_cino()
1883 if (l[1] == '-') in parse_cino()
1888 switch (*l) in parse_cino()
2054 char_u *l; in get_c_indent() local
2347 l = skipwhite(ml_get(lnum)); in get_c_indent()
2348 if (cin_nocode(l)) // skip comment lines in get_c_indent()
2350 if (cin_ispreproc_cont(&l, &lnum, &amount)) in get_c_indent()
2454 l = ml_get(our_paren_pos.lnum); in get_c_indent()
2456 && cin_ends_in(l, (char_u *)"(", NULL)) in get_c_indent()
2463 switch (l[col]) in get_c_indent()
2484 while (VIM_ISWHITE(l[col])) in get_c_indent()
2486 if (l[col] != NUL) // In case of trailing space in get_c_indent()
2617 amount = skip_label(lnum, &l); in get_c_indent()
2682 l = skipwhite(ml_get_curline()); in get_c_indent()
2683 if (cin_is_cpp_namespace(l)) in get_c_indent()
2685 else if (cin_is_cpp_extern_c(l)) in get_c_indent()
2762 l = ml_get_curline(); in get_c_indent()
2775 if (cin_ispreproc_cont(&l, &curwin->w_cursor.lnum, in get_c_indent()
2779 if (cin_nocode(l)) in get_c_indent()
2782 terminated = cin_isterminated(l, FALSE, TRUE); in get_c_indent()
2788 || !cin_isfuncdecl(&l, curwin->w_cursor.lnum, 0)) in get_c_indent()
2816 if (find_last_paren(l, '(', ')')) in get_c_indent()
2820 if (trypos == NULL && find_last_paren(l, '{', '}')) in get_c_indent()
2873 l = ml_get_curline(); in get_c_indent()
2886 if (cin_ispreproc_cont(&l, &curwin->w_cursor.lnum, in get_c_indent()
2891 if (cin_is_cpp_namespace(l)) in get_c_indent()
2897 else if (cin_is_cpp_extern_c(l)) in get_c_indent()
2904 if (cin_nocode(l)) in get_c_indent()
2920 l = ml_get_curline(); in get_c_indent()
2924 iscase = cin_iscase(l, FALSE); in get_c_indent()
2925 if (iscase || cin_isscopedecl(l)) in get_c_indent()
2995 l = after_label(ml_get_curline()); in get_c_indent()
2996 if (l != NULL && cin_is_cinword(l)) in get_c_indent()
3025 if (find_last_paren(l, '{', '}') in get_c_indent()
3037 l = after_label(ml_get_curline()); in get_c_indent()
3038 if (l == NULL || cin_nocode(l)) in get_c_indent()
3046 l = ml_get_curline(); in get_c_indent()
3047 if (cin_ispreproc_cont(&l, &curwin->w_cursor.lnum, &amount) in get_c_indent()
3048 || cin_nocode(l)) in get_c_indent()
3057 l = ml_get_curline(); in get_c_indent()
3085 if (cin_isterminated(l, TRUE, FALSE)) in get_c_indent()
3100 terminated = cin_isterminated(l, FALSE, TRUE); in get_c_indent()
3117 if (lookfor == LOOKFOR_JS_KEY && cin_has_js_key(l)) in get_c_indent()
3146 (*skipwhite(l) == '[' || l[STRLEN(l) - 1] == '[')) in get_c_indent()
3157 (void)find_last_paren(l, '(', ')'); in get_c_indent()
3167 && find_last_paren(l, '{', '}')) in get_c_indent()
3177 l = ml_get_curline(); in get_c_indent()
3178 if (cin_iscase(l, FALSE) || cin_isscopedecl(l)) in get_c_indent()
3195 l = ml_get(curwin->w_cursor.lnum - 1); in get_c_indent()
3196 if (*l == NUL || l[STRLEN(l) - 1] != '\\') in get_c_indent()
3208 cur_amount = skip_label(curwin->w_cursor.lnum, &l); in get_c_indent()
3223 if (*skipwhite(l) != '{') in get_c_indent()
3238 if (cin_is_cinword(l) || cin_iselse(skipwhite(l))) in get_c_indent()
3281 l = skipwhite(ml_get_curline()); in get_c_indent()
3282 if (cin_isdo(l)) in get_c_indent()
3293 if (cin_iselse(l) && whilelevel == 0) in get_c_indent()
3298 if (*l == '}') in get_c_indent()
3300 (colnr_T)(l - ml_get_curline()) + 1; in get_c_indent()
3355 l = ml_get_curline(); in get_c_indent()
3358 n = (int)STRLEN(l); in get_c_indent()
3359 if (terminated == ',' && (*skipwhite(l) == ']' in get_c_indent()
3360 || (n >=2 && l[n - 2] == ']'))) in get_c_indent()
3387 if (cin_iscomment(skipwhite(l))) in get_c_indent()
3413 && *l != NUL in get_c_indent()
3414 && l[STRLEN(l) - 1] == '\\') in get_c_indent()
3476 l = cin_skipcomment(ml_get_curline()); in get_c_indent()
3477 if (cin_isdo(l)) in get_c_indent()
3529 l = ml_get_curline(); in get_c_indent()
3530 if (find_last_paren(l, '(', ')') in get_c_indent()
3539 l = ml_get_curline(); in get_c_indent()
3540 if (cin_iscase(l, FALSE) || cin_isscopedecl(l)) in get_c_indent()
3557 && cin_iscase(l, FALSE)); in get_c_indent()
3561 amount = skip_label(curwin->w_cursor.lnum, &l); in get_c_indent()
3566 l = skipwhite(l); in get_c_indent()
3567 if (*l == '{') in get_c_indent()
3578 && *l != '}' in get_c_indent()
3579 && cin_iselse(l) in get_c_indent()
3591 l = ml_get_curline(); in get_c_indent()
3592 if (find_last_paren(l, '{', '}') // XXX in get_c_indent()
3598 l = cin_skipcomment(ml_get_curline()); in get_c_indent()
3599 if (*l == '}' || !cin_iselse(l)) in get_c_indent()
3665 l = ml_get_curline(); in get_c_indent()
3682 l = ml_get_curline(); in get_c_indent()
3692 if (cin_ispreproc_cont(&l, &curwin->w_cursor.lnum, &amount)) in get_c_indent()
3695 if (cin_nocode(l)) in get_c_indent()
3709 if (cin_ends_in(l, (char_u *)",", NULL) in get_c_indent()
3710 || (*l != NUL && (n = l[STRLEN(l) - 1]) == '\\')) in get_c_indent()
3713 if (find_last_paren(l, '(', ')') in get_c_indent()
3725 l = ml_get(curwin->w_cursor.lnum - 1); in get_c_indent()
3726 if (*l == NUL || l[STRLEN(l) - 1] != '\\') in get_c_indent()
3745 l = ml_get_curline(); in get_c_indent()
3749 if (*skipwhite(l) == '}') in get_c_indent()
3757 if (cin_ends_in(l, (char_u *)"};", NULL)) in get_c_indent()
3764 if (cin_ends_in(l, (char_u *)"[", NULL)) in get_c_indent()
3773 if (*(look = skipwhite(l)) == ';' && cin_nocode(look + 1)) in get_c_indent()
3794 if (cin_isfuncdecl(&l, curwin->w_cursor.lnum, 0)) in get_c_indent()
3805 if (cin_ends_in(l, (char_u *)";", NULL)) in get_c_indent()
3807 l = ml_get(curwin->w_cursor.lnum - 1); in get_c_indent()
3808 if (cin_ends_in(l, (char_u *)",", NULL) in get_c_indent()
3809 || (*l != NUL && l[STRLEN(l) - 1] == '\\')) in get_c_indent()
3811 l = ml_get_curline(); in get_c_indent()
3819 find_last_paren(l, '(', ')'); in get_c_indent()
3838 l = ml_get(cur_curpos.lnum - 1); in get_c_indent()
3839 if (*l != NUL && l[STRLEN(l) - 1] == '\\') in get_c_indent()