summaryrefslogtreecommitdiffstats
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-03 22:28:21 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-03 22:28:21 +0000
commit978c841bef6356b836aa769aee366d3c5a6f64c6 (patch)
treee6240e57e397c22940b35b79c5eb04a8542a3327 /argv.c
parentf64a310e2e71ac67ec7eb30da2ee82c83de8bf44 (diff)
downloadmandoc-978c841bef6356b836aa769aee366d3c5a6f64c6.tar.gz
-diag fixed (allows quoted parameters)
Versioned up.
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/argv.c b/argv.c
index 77864950..ba3b1d2d 100644
--- a/argv.c
+++ b/argv.c
@@ -251,11 +251,19 @@ mdoc_args(struct mdoc *mdoc, int line,
/* LINTED */
for (i = 0; i < c; i++) {
- if (MDOC_Column != n->data.block.argv[i].arg)
- continue;
- fl |= ARGS_TABSEP;
- fl &= ~ARGS_DELIM;
- break;
+ switch (n->data.block.argv[i].arg) {
+ case (MDOC_Column):
+ fl |= ARGS_TABSEP;
+ fl &= ~ARGS_DELIM;
+ i = c;
+ break;
+ case (MDOC_Diag):
+ fl |= ARGS_QUOTED;
+ i = c;
+ break;
+ default:
+ break;
+ }
}
}