summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-10-12 19:10:57 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-10-12 19:10:57 +0000
commitf8468c3ed7890958bb7ce6a8c379a500c2102c21 (patch)
treeda48824015c5438e898284d4b53b33ee3f0491f3 /usr.bin/mandoc/man_term.c
parent9822ed1561682db780d95d59972c9ff9d6af5775 (diff)
Improve error handling in the eqn(7) parser.
Get rid of the first fatal error, MANDOCERR_EQNSYNT. In eqn(7), there is no need to be bug-compatible with groff, so there is no need to abondon the whole equation in case of a syntax error. In particular: * Skip "back", "delim", "down", "fwd", "gfont", "gsize", "left", "right", "size", and "up" without arguments. * Skip "gsize" and "size" with a non-numeric argument. * Skip closing delimiters that are not open. * Skip "above" outside piles. * For diacritic marks and binary operators without a left operand, default to an empty box. * Let piles and matrices take one argument rather than insisting on a braced list. Let HTML output handle that, too. * When rewinding, if the root box is guaranteed to match the termination condition, no error handling is needed.
Diffstat (limited to 'usr.bin/mandoc/man_term.c')
0 files changed, 0 insertions, 0 deletions