diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-07 06:05:38 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-07 06:05:38 +0000 |
commit | 14c096e3772b640b87176e27eaa291c9fefbe0de (patch) | |
tree | d7a7cb82808c9a2b51ea93b7df5d0a256b09f320 /mdoc_argv.c | |
parent | affb60f9d063ad854386b239fbe7688abd4cdeac (diff) | |
download | mandoc-14c096e3772b640b87176e27eaa291c9fefbe0de.tar.gz |
Initial ARGS_PPHRASE (partial phrase) framework.
Running tally of changes in index.sgml.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r-- | mdoc_argv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c index 08de1bf0..0ab8d9d6 100644 --- a/mdoc_argv.c +++ b/mdoc_argv.c @@ -378,6 +378,7 @@ args(struct mdoc *m, int line, int *pos, { int i; char *p, *pp; + enum margserr rc; /* * Parse out the terms (like `val' in `.Xx -arg val' or simply @@ -440,6 +441,7 @@ args(struct mdoc *m, int line, int *pos, */ if (ARGS_TABSEP & fl) { + rc = ARGS_PHRASE; /* Scan ahead to tab (can't be escaped). */ p = strchr(*v, '\t'); @@ -488,7 +490,7 @@ args(struct mdoc *m, int line, int *pos, for (pp = &buf[*pos]; ' ' == *pp; pp++, (*pos)++) /* Skip ahead. */ ; - return(ARGS_PHRASE); + return(rc); } /* |