• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/zsh-61/zsh/Src/Zle/

Lines Matching +defs:first +defs:line

67     int kind;                   /* 0: not in a group, 1: the first, 2: other */
651 /* line wrapped, use remainder of the extra line */
883 /* used while parsing a command line */
901 int active; /* still allowed on command line */
926 int active; /* still allowed on command line */
1340 /* If it's a long option skip over the first `-'. */
1630 * Get the option used in a word from the line, if any.
1633 * "line" is the word we are scanning.
1641 ca_get_opt(Cadef d, char *line, int full, char **end)
1648 if (p->active && !strcmp(p->name, line)) {
1650 *end = line + strlen(line);
1656 /* The string from the line probably only begins with an option. */
1659 !strcmp(p->name, line) : strpfx(p->name, line))) {
1665 line[l] == '=')
1668 *end = line + l;
1679 ca_get_sopt(Cadef d, char *line, char **end, LinkList *lp)
1682 char pre = *line++;
1686 for (p = NULL; *line; line++) {
1687 if ((p = d->single[STOUC(*line)]) && p->active &&
1695 line++;
1697 *line == '=')
1698 line++;
1699 *end = line;
1710 *end = line;
1807 /* State when parsing a command line. */
1849 ca_opt_arg(Caopt opt, char *line)
1856 if (*line == '\\' || *line == '\'' || *line == '"')
1857 line++;
1858 if (!*o || *o != *line)
1861 line++;
1863 if (*line && (opt->type == CAO_EQUAL || opt->type == CAO_OEQUAL)) {
1864 if (*line == '\\')
1865 line++;
1866 if (*line == '=')
1867 line++;
1869 return ztrdup(line);
1872 /* Parse a command line. */
1875 ca_parse_line(Cadef d, int multi, int first)
1880 char *line, *oline, *pe, **argxor = NULL;
1890 if (first && ca_alloced) {
1937 /* Loop over the words from the line. */
1939 for (line = compwords[1], cur = 2, state.curopt = NULL, state.def = NULL;
1940 line; line = compwords[cur++]) {
1945 oline = line;
1950 * between command line values that can be expanded and those
1957 line = dupstring(line);
1960 parse_subst_string(line);
1963 remnulargs(line);
1964 untokenize(line);
1967 ((d->flags & CDF_SEP) && cur != compcurrent && !strcmp(line, "--"))) {
1984 if (state.def->end && pattry(endpat, line)) {
2014 state.opt = (line[0] ? (line[1] ? 2 : 1) : 0);
2022 if (state.opt == 2 && (state.curopt = ca_get_opt(d, line, 0, &pe)) &&
2033 doff = pe - line;
2070 ((state.curopt = ca_get_sopt(d, line, &pe, &sopts)) ||
2087 doff = pe - line;
2092 for (p = line + 1; p < pe; p++) {
2114 ca_opt_arg(state.curopt, line));
2120 } else if (multi && (*line == '-' || *line == '+') && cur != compcurrent
2125 && (!napat || !pattry(napat, line))
2129 else if (state.arg && (!napat || !pattry(napat, line))) {
2140 if (!d->args && !d->rest && *line && *line != '-' && *line != '+') {
2167 (!multi || !*line ||
2168 *line == '-' || *line == '+'));
2173 for (; line; line = compwords[cur++])
2174 zaddlinknode(state.args, ztrdup(line));
2182 zaddlinknode(state.args, ztrdup(line));
2211 for (; line; line = compwords[cur++])
2212 zaddlinknode(l, ztrdup(line));
2246 ca_laststate.opt = (!arglast || !multi || !*line ||
2247 *line == '-' || *line == '+');
2466 int cap = ca_parsed, multi, first = 1, use, ret = 0;
2483 use = !ca_parse_line(def, multi, first);
2514 first = 0;
2526 * things _arguments has to execute at this place on the line (the
2697 /* This gets two parameter names as arguments. The first is set to
2700 * the line and their arguments. I.e. the stuff _arguments returns
2701 * to its caller in the `line' and `opt_args' parameters. */
3460 /* This returns the description string (first argument to _values)
3466 * and returns the description and action of its first argument, if
4006 * prefix or suffix from the command line.
4132 * We take account of equivalences between the word and line, too.
4191 if (m->line->tp == CPAT_EQUIV &&
4208 if (PATMATCHRANGE(m->line->u.str, addc, &ind, &mt)) {
4283 * if *add is ] and ] is also the first
4376 if (pattern_match(m->line, tmp, NULL, NULL)) {
4390 stopp = m->line;
4410 stopp = m->line;