Lines Matching refs:p

126     char_u	*p,	// end of the command (possibly including count)  in find_ucmd()  argument
131 int len = (int)(p - eap->cmd); in find_ucmd()
230 return p + (matchlen - len); in find_ucmd()
231 return p; in find_ucmd()
238 char_u *p; in set_context_in_user_cmd() local
244 p = skiptowhite(arg); in set_context_in_user_cmd()
245 if (*p == NUL) in set_context_in_user_cmd()
248 p = vim_strchr(arg, '='); in set_context_in_user_cmd()
249 if (p == NULL) in set_context_in_user_cmd()
259 if (STRNICMP(arg, "complete", p - arg) == 0) in set_context_in_user_cmd()
262 xp->xp_pattern = p + 1; in set_context_in_user_cmd()
265 else if (STRNICMP(arg, "nargs", p - arg) == 0) in set_context_in_user_cmd()
268 xp->xp_pattern = p + 1; in set_context_in_user_cmd()
271 else if (STRNICMP(arg, "addr", p - arg) == 0) in set_context_in_user_cmd()
274 xp->xp_pattern = p + 1; in set_context_in_user_cmd()
279 arg = skipwhite(p); in set_context_in_user_cmd()
283 p = skiptowhite(arg); in set_context_in_user_cmd()
284 if (*p == NUL) in set_context_in_user_cmd()
292 return skipwhite(p); in set_context_in_user_cmd()
725 char_u *p; in uc_scan_attr() local
795 p = val; in uc_scan_attr()
803 *def = getdigits(&p); in uc_scan_attr()
806 if (p != val + vallen || vallen == 0) in uc_scan_attr()
826 p = val; in uc_scan_attr()
830 *def = getdigits(&p); in uc_scan_attr()
832 if (p != val + vallen) in uc_scan_attr()
894 char_u *p; in uc_add_command() local
970 if ((p = vim_strnsave(name, name_len)) == NULL) in uc_add_command()
978 cmd->uc_name = p; in uc_add_command()
1009 may_get_cmd_block(exarg_T *eap, char_u *p, char_u **tofree, int *flags) in may_get_cmd_block() argument
1011 char_u *retp = p; in may_get_cmd_block()
1013 if (*p == '{' && ends_excmd2(eap->arg, skipwhite(p + 1)) in may_get_cmd_block()
1020 if (ga_add_string(&ga, p) == FAIL) in may_get_cmd_block()
1025 if (p[STRLEN(p) - 1] != '}') in may_get_cmd_block()
1058 char_u *p; in ex_command() local
1068 p = eap->arg; in ex_command()
1071 while (*p == '-') in ex_command()
1073 ++p; in ex_command()
1074 end = skiptowhite(p); in ex_command()
1075 if (uc_scan_attr(p, end - p, &argt, &def, &flags, &compl, in ex_command()
1078 p = skipwhite(end); in ex_command()
1082 name = p; in ex_command()
1083 if (ASCII_ISALPHA(*p)) in ex_command()
1084 while (ASCII_ISALNUM(*p)) in ex_command()
1085 ++p; in ex_command()
1086 if (!ends_excmd2(eap->arg, p) && !VIM_ISWHITE(*p)) in ex_command()
1091 end = p; in ex_command()
1096 p = skipwhite(end); in ex_command()
1097 if (!has_attr && ends_excmd2(eap->arg, p)) in ex_command()
1120 p = may_get_cmd_block(eap, p, &tofree, &flags); in ex_command()
1122 uc_add_command(name, end - name, p, argt, def, flags, compl, compl_arg, in ex_command()
1222 char_u *p; in uc_split_args() local
1227 p = arg; in uc_split_args()
1230 while (*p) in uc_split_args()
1232 if (p[0] == '\\' && p[1] == '\\') in uc_split_args()
1235 p += 2; in uc_split_args()
1237 else if (p[0] == '\\' && VIM_ISWHITE(p[1])) in uc_split_args()
1240 p += 2; in uc_split_args()
1242 else if (*p == '\\' || *p == '"') in uc_split_args()
1245 p += 1; in uc_split_args()
1247 else if (VIM_ISWHITE(*p)) in uc_split_args()
1249 p = skipwhite(p); in uc_split_args()
1250 if (*p == NUL) in uc_split_args()
1256 int charlen = (*mb_ptr2len)(p); in uc_split_args()
1259 p += charlen; in uc_split_args()
1270 p = arg; in uc_split_args()
1273 while (*p) in uc_split_args()
1275 if (p[0] == '\\' && p[1] == '\\') in uc_split_args()
1279 p += 2; in uc_split_args()
1281 else if (p[0] == '\\' && VIM_ISWHITE(p[1])) in uc_split_args()
1283 *q++ = p[1]; in uc_split_args()
1284 p += 2; in uc_split_args()
1286 else if (*p == '\\' || *p == '"') in uc_split_args()
1289 *q++ = *p++; in uc_split_args()
1291 else if (VIM_ISWHITE(*p)) in uc_split_args()
1293 p = skipwhite(p); in uc_split_args()
1294 if (*p == NUL) in uc_split_args()
1303 MB_COPY_CHAR(p, q); in uc_split_args()
1451 char_u *p = code + 1; in uc_check_code() local
1467 if ((vim_strchr((char_u *)"qQfF", *p) != NULL) && p[1] == '-') in uc_check_code()
1469 quote = (*p == 'q' || *p == 'Q') ? 1 : 2; in uc_check_code()
1470 p += 2; in uc_check_code()
1477 else if (STRNICMP(p, "args>", l) == 0) in uc_check_code()
1479 else if (STRNICMP(p, "bang>", l) == 0) in uc_check_code()
1481 else if (STRNICMP(p, "count>", l) == 0) in uc_check_code()
1483 else if (STRNICMP(p, "line1>", l) == 0) in uc_check_code()
1485 else if (STRNICMP(p, "line2>", l) == 0) in uc_check_code()
1487 else if (STRNICMP(p, "range>", l) == 0) in uc_check_code()
1489 else if (STRNICMP(p, "lt>", l) == 0) in uc_check_code()
1491 else if (STRNICMP(p, "reg>", l) == 0 || STRNICMP(p, "register>", l) == 0) in uc_check_code()
1493 else if (STRNICMP(p, "mods>", l) == 0) in uc_check_code()
1527 for (p = eap->arg; *p; ++p) in uc_check_code()
1529 if (enc_dbcs != 0 && (*mb_ptr2len)(p) == 2) in uc_check_code()
1532 ++p; in uc_check_code()
1534 if (*p == '\\' || *p == '"') in uc_check_code()
1541 for (p = eap->arg; *p; ++p) in uc_check_code()
1543 if (enc_dbcs != 0 && (*mb_ptr2len)(p) == 2) in uc_check_code()
1546 *buf++ = *p++; in uc_check_code()
1548 if (*p == '\\' || *p == '"') in uc_check_code()
1550 *buf++ = *p; in uc_check_code()
1661 char_u *p; in do_ucmd() local
1687 p = cmd->uc_rep; // source in do_ucmd()
1693 start = vim_strchr(p, '<'); in do_ucmd()
1698 for (ksp = p; *ksp != NUL && *ksp != K_SPECIAL; ++ksp) in do_ucmd()
1712 len = ksp - p; in do_ucmd()
1715 mch_memmove(q, p, len); in do_ucmd()
1719 p = ksp + 3; in do_ucmd()
1732 len = start - p; in do_ucmd()
1737 mch_memmove(q, p, len); in do_ucmd()
1746 p = start + 1; in do_ucmd()
1750 p = end; in do_ucmd()
1758 STRCPY(q, p); in do_ucmd()
1762 totlen += STRLEN(p); // Add on the trailing characters in do_ucmd()