Lines Matching refs:arg
971 char_u *cmd, *arg; in set_one_cmd_context() local
1096 arg = skipwhite(p); in set_one_cmd_context()
1099 if ((ea.argt & EX_ARGOPT) && *arg != NUL && STRNCMP(arg, "++", 2) == 0) in set_one_cmd_context()
1101 p = arg; in set_one_cmd_context()
1104 arg = skipwhite(p); in set_one_cmd_context()
1109 if (*arg == '>') // append in set_one_cmd_context()
1111 if (*++arg == '>') in set_one_cmd_context()
1112 ++arg; in set_one_cmd_context()
1113 arg = skipwhite(arg); in set_one_cmd_context()
1115 else if (*arg == '!' && ea.cmdidx == CMD_write) // :w !filter in set_one_cmd_context()
1117 ++arg; in set_one_cmd_context()
1125 if (*arg == '!') // :r !filter in set_one_cmd_context()
1127 ++arg; in set_one_cmd_context()
1134 while (*arg == *cmd) // allow any number of '>' or '<' in set_one_cmd_context()
1135 ++arg; in set_one_cmd_context()
1136 arg = skipwhite(arg); in set_one_cmd_context()
1140 if ((ea.argt & EX_CMDARG) && !usefilter && *arg == '+') in set_one_cmd_context()
1143 p = arg + 1; in set_one_cmd_context()
1144 arg = skip_cmd_arg(arg, FALSE); in set_one_cmd_context()
1147 if (*arg == NUL) in set_one_cmd_context()
1151 arg = skipwhite(arg); in set_one_cmd_context()
1159 p = arg; in set_one_cmd_context()
1184 if (!(ea.argt & EX_EXTRA) && *arg != NUL in set_one_cmd_context()
1185 && vim_strchr((char_u *)"|\"", *arg) == NULL) in set_one_cmd_context()
1216 xp->xp_pattern = skipwhite(arg); in set_one_cmd_context()
1280 if (xp->xp_pattern == skipwhite(arg)) in set_one_cmd_context()
1336 xp->xp_pattern = arg; in set_one_cmd_context()
1375 return arg; in set_one_cmd_context()
1378 if (*arg != NUL) in set_one_cmd_context()
1379 arg = skip_vimgrep_pat(arg, NULL, NULL); in set_one_cmd_context()
1380 if (arg == NULL || *arg == NUL) in set_one_cmd_context()
1385 return skipwhite(arg); in set_one_cmd_context()
1389 if (*arg == NUL || !ends_excmd(*arg)) in set_one_cmd_context()
1392 set_context_in_echohl_cmd(xp, arg); in set_one_cmd_context()
1393 arg = skipwhite(skiptowhite(arg)); in set_one_cmd_context()
1394 if (*arg != NUL) in set_one_cmd_context()
1397 arg = skip_regexp(arg + 1, *arg, magic_isset()); in set_one_cmd_context()
1400 return find_nextcmd(arg); in set_one_cmd_context()
1406 return set_context_in_user_cmd(xp, arg); in set_one_cmd_context()
1410 xp->xp_pattern = arg; in set_one_cmd_context()
1415 delim = *arg; // get the delimiter in set_one_cmd_context()
1417 ++arg; // skip delimiter if there is one in set_one_cmd_context()
1419 while (arg[0] != NUL && arg[0] != delim) in set_one_cmd_context()
1421 if (arg[0] == '\\' && arg[1] != NUL) in set_one_cmd_context()
1422 ++arg; in set_one_cmd_context()
1423 ++arg; in set_one_cmd_context()
1425 if (arg[0] != NUL) in set_one_cmd_context()
1426 return arg + 1; in set_one_cmd_context()
1430 delim = *arg; in set_one_cmd_context()
1434 ++arg; in set_one_cmd_context()
1435 arg = skip_regexp(arg, delim, magic_isset()); in set_one_cmd_context()
1438 while (arg[0] != NUL && arg[0] != delim) in set_one_cmd_context()
1440 if (arg[0] == '\\' && arg[1] != NUL) in set_one_cmd_context()
1441 ++arg; in set_one_cmd_context()
1442 ++arg; in set_one_cmd_context()
1444 if (arg[0] != NUL) // skip delimiter in set_one_cmd_context()
1445 ++arg; in set_one_cmd_context()
1446 while (arg[0] && vim_strchr((char_u *)"|\"#", arg[0]) == NULL) in set_one_cmd_context()
1447 ++arg; in set_one_cmd_context()
1448 if (arg[0] != NUL) in set_one_cmd_context()
1449 return arg; in set_one_cmd_context()
1460 arg = skipwhite(skipdigits(arg)); // skip count in set_one_cmd_context()
1461 if (*arg == '/') // Match regexp, not just whole words in set_one_cmd_context()
1463 for (++arg; *arg && *arg != '/'; arg++) in set_one_cmd_context()
1464 if (*arg == '\\' && arg[1] != NUL) in set_one_cmd_context()
1465 arg++; in set_one_cmd_context()
1466 if (*arg) in set_one_cmd_context()
1468 arg = skipwhite(arg + 1); in set_one_cmd_context()
1471 if (*arg && vim_strchr((char_u *)"|\"\n", *arg) == NULL) in set_one_cmd_context()
1474 return arg; in set_one_cmd_context()
1480 return set_context_in_autocmd(xp, arg, FALSE); in set_one_cmd_context()
1483 return set_context_in_autocmd(xp, arg, TRUE); in set_one_cmd_context()
1485 set_context_in_set_cmd(xp, arg, 0); in set_one_cmd_context()
1488 set_context_in_set_cmd(xp, arg, OPT_GLOBAL); in set_one_cmd_context()
1491 set_context_in_set_cmd(xp, arg, OPT_LOCAL); in set_one_cmd_context()
1507 xp->xp_pattern = arg; in set_one_cmd_context()
1511 xp->xp_pattern = arg; in set_one_cmd_context()
1515 set_context_in_syntax_cmd(xp, arg); in set_one_cmd_context()
1540 set_context_for_expression(xp, arg, ea.cmdidx); in set_one_cmd_context()
1544 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) in set_one_cmd_context()
1545 arg = xp->xp_pattern + 1; in set_one_cmd_context()
1548 xp->xp_pattern = arg; in set_one_cmd_context()
1561 xp->xp_pattern = arg; in set_one_cmd_context()
1564 set_context_in_disassemble_cmd(xp, arg); in set_one_cmd_context()
1568 set_context_in_echohl_cmd(xp, arg); in set_one_cmd_context()
1572 set_context_in_highlight_cmd(xp, arg); in set_one_cmd_context()
1578 set_context_in_cscope_cmd(xp, arg, ea.cmdidx); in set_one_cmd_context()
1583 set_context_in_sign_cmd(xp, arg); in set_one_cmd_context()
1589 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) in set_one_cmd_context()
1590 arg = xp->xp_pattern + 1; in set_one_cmd_context()
1596 xp->xp_pattern = arg; in set_one_cmd_context()
1604 xp->xp_pattern = arg; in set_one_cmd_context()
1616 return set_context_in_menu_cmd(xp, cmd, arg, forceit); in set_one_cmd_context()
1619 return arg; in set_one_cmd_context()
1622 arg, forceit, FALSE, FALSE, CMD_map); in set_one_cmd_context()
1624 p = arg; in set_one_cmd_context()
1629 arg = p + 1; in set_one_cmd_context()
1634 xp->xp_pattern = arg; in set_one_cmd_context()
1650 return set_context_in_map_cmd(xp, cmd, arg, forceit, in set_one_cmd_context()
1662 return set_context_in_map_cmd(xp, cmd, arg, forceit, in set_one_cmd_context()
1675 xp->xp_pattern = arg; in set_one_cmd_context()
1681 return set_context_in_map_cmd(xp, cmd, arg, forceit, in set_one_cmd_context()
1686 return set_context_in_map_cmd(xp, cmd, arg, forceit, in set_one_cmd_context()
1699 return set_context_in_menu_cmd(xp, cmd, arg, forceit); in set_one_cmd_context()
1704 xp->xp_pattern = arg; in set_one_cmd_context()
1709 xp->xp_pattern = arg; in set_one_cmd_context()
1714 xp->xp_pattern = arg; in set_one_cmd_context()
1719 xp->xp_pattern = arg; in set_one_cmd_context()
1724 xp->xp_pattern = arg; in set_one_cmd_context()
1729 p = skiptowhite(arg); in set_one_cmd_context()
1733 xp->xp_pattern = arg; in set_one_cmd_context()
1737 if ( STRNCMP(arg, "messages", p - arg) == 0 in set_one_cmd_context()
1738 || STRNCMP(arg, "ctype", p - arg) == 0 in set_one_cmd_context()
1739 || STRNCMP(arg, "time", p - arg) == 0 in set_one_cmd_context()
1740 || STRNCMP(arg, "collate", p - arg) == 0) in set_one_cmd_context()
1752 set_context_in_profile_cmd(xp, arg); in set_one_cmd_context()
1757 xp->xp_pattern = arg; in set_one_cmd_context()
1762 xp->xp_pattern = arg; in set_one_cmd_context()
1767 xp->xp_pattern = arg; in set_one_cmd_context()
1772 xp->xp_pattern = arg; in set_one_cmd_context()
1777 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) in set_one_cmd_context()
1778 arg = xp->xp_pattern + 1; in set_one_cmd_context()
1780 xp->xp_pattern = arg; in set_one_cmd_context()