summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/tbl/opt.out_lint
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-01-26 00:54:10 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-01-26 00:54:10 +0000
commitc93c28ddbd10b595b059b57e708baf92fe431c33 (patch)
tree9dfb9acc1679ed7fe7a6719a72d2c384083c9331 /regress/usr.bin/mandoc/tbl/opt.out_lint
parent4049f099bfc99d5a5f50530f43a44d9b12584b2d (diff)
Improve (or rather, rewrite) tbl(7) option parsing.
* Allow the layout to start after the semicolon on the options line. * Ignore leading commas. * Option arguments cannot contain closing parentheses. * Avoid needless UNSUPP messages. * Better ERROR reporting. * Delete unused "linesize" field in struct tbl_opts. * No need for static buffers. * Garbage collect one almost empty wrapper function. Improved functionality, but minus 40 lines of code.
Diffstat (limited to 'regress/usr.bin/mandoc/tbl/opt.out_lint')
-rw-r--r--regress/usr.bin/mandoc/tbl/opt.out_lint4
1 files changed, 4 insertions, 0 deletions
diff --git a/regress/usr.bin/mandoc/tbl/opt.out_lint b/regress/usr.bin/mandoc/tbl/opt.out_lint
new file mode 100644
index 00000000000..85ba35cf7c4
--- /dev/null
+++ b/regress/usr.bin/mandoc/tbl/opt.out_lint
@@ -0,0 +1,4 @@
+mandoc: opt.in:7:5: ERROR: missing tbl option argument: tab
+mandoc: opt.in:7:19: ERROR: wrong tbl option argument size: decimalpoint want 1 have 2
+mandoc: opt.in:7:23: ERROR: non-alphabetic character in tbl options: %
+mandoc: opt.in:7:24: ERROR: skipping unknown tbl option: foo