*
* 1. skip comment lines and leading space
* 2. handle command modifiers
- * 3. parse command
+ * 3. find the command
* 4. parse range
+ * 5. Parse the command.
* 6. parse arguments
* 7. switch on command name
*
ea.forceit = FALSE;
/*
- * 5. Parse arguments.
+ * 6. Parse arguments.
*/
if (!IS_USER_CMDIDX(ea.cmdidx))
ea.argt = (long)cmdnames[(int)ea.cmdidx].cmd_argt;
#endif
/*
- * 6. Switch on command name.
+ * 7. Switch on command name.
*
* The "ea" structure holds the arguments that can be used.
*/
ea.argt = 0;
/*
- * 2. skip comment lines and leading space, colons or bars
+ * 1. skip comment lines and leading space, colons or bars
*/
for (cmd = buff; vim_strchr((char_u *)" \t:|", *cmd) != NULL; cmd++)
;
}
/*
- * 3. parse a range specifier of the form: addr [,addr] [;addr] ..
+ * 3. Skip over the range to find the command.
*/
cmd = skip_range(cmd, &xp->xp_context);
-
-/*
- * 4. parse command
- */
xp->xp_pattern = cmd;
if (*cmd == NUL)
return NULL;
}
/*
- * 5. parse arguments
+ * 6. parse arguments
*/
if (!IS_USER_CMDIDX(ea.cmdidx))
ea.argt = (long)cmdnames[(int)ea.cmdidx].cmd_argt;
}
/*
- * 6. switch on command name
+ * 6. Switch on command name.
*/
switch (ea.cmdidx)
{