summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed fatal bug in Xo/Xc patch that caused segfaults with last-child ↵Kristaps Dzonsons2010-03-311-8/+13
| | | | explicit-scope macros.
* Re-adjusting UGLY tags.Kristaps Dzonsons2010-03-311-4/+2
| | | | | Fixed removed assignment of type. Removed superfluous checks of mdoc_argflags (from days when comments were a macro tag).
* Macro types enum-ated (enum mdoct) (for easier debugging in gdb of "tok" ↵Kristaps Dzonsons2010-03-311-15/+52
| | | | | | | values). Initial check-in of Ingo Schwarze's patch for Xo/Xc handling (in blocks ifdef'd "UGLY"). Put Oc-close-Op parts into UGLY ifdef blocks.
* Modified in_line_eoln() to handle leading punctuation.VERSION.1.9.20Kristaps Dzonsons2010-03-301-21/+33
|
* Last remaining bits for leading-punctuation in blk_exp().Kristaps Dzonsons2010-03-301-53/+65
|
* Fixed segfault with accidentally-munged tree.Kristaps Dzonsons2010-03-291-10/+8
|
* Integrate Ingo Schwarze's patch for mdoc_iscdelim() (tri-state for opening ↵Kristaps Dzonsons2010-03-291-75/+107
| | | | | | | | | | | and closing macro punctuation). Modify blk_part_exp() to correctly handle leading punctuation before HEAD. Significantly clean up and document blk_part_exp(). Modify blk_part_imp() for to correctly handle leading punctuation before HEAD. Significantly clean up and document blk_part_imp(). Integrate Ingo Schwarze's patch for args() (using new mdoc_iscdelim() format). Documented bad `Ec' handling for later work in mdoc_term.c/mdoc_html.c.
* Made `Xr' compatible with groff calling conventions where arguments ↵Kristaps Dzonsons2010-02-171-2/+18
| | | | | | following the trailing section are implicitly `Ns'd. Based on a patch submitted by Ingo Schwarze.
* Fix in handling Vt in SYNOPSIS with trailing punctuation. Spotted by Joerg ↵Kristaps Dzonsons2010-01-301-1/+27
| | | | Sonnenberger.
* Big check-in of compatibility layer. This should work on most major ↵Kristaps Dzonsons2010-01-011-0/+4
| | | | architectures. Thanks to Joerg Sonnenberger.
* `Fl' has each argument be in a separate scope (thanks Ingo Schwarze).Kristaps Dzonsons2010-01-011-0/+11
| | | | | Situation of `Fl [arg]* "" [arg]*' is fixed: empty arguments are ignored. Note that OpenBSD crashes when this happens. Situation of `Fl' is fixed wrt trailing whitespace.
* Added time.h to various files for FreeBSD compilation (thanks Ulrich Sporlein).Kristaps Dzonsons2009-10-261-0/+1
|
* Added `%U' to -mdoc (doesn't render in a nice way yet).Kristaps Dzonsons2009-10-241-0/+1
|
* Some extra html tags and near-complete Bl: -tag is hopeless (synonym for ↵Kristaps Dzonsons2009-09-201-0/+1
| | | | -hang, now) and -column is still pending.
* Lintifications.Kristaps Dzonsons2009-09-161-13/+13
|
* Lookup hashes are now static tables, ordered first-level by second ↵Kristaps Dzonsons2009-09-161-1/+1
| | | | character, then randomly along a chain. Improves performance by a small fraction and considerably cleans up hash sources.
* Delimiter whitespace is correctly flagged (required some special handling).Kristaps Dzonsons2009-08-201-2/+2
|
* In-line documentation of mdoc_macro file.Kristaps Dzonsons2009-08-191-264/+201
| | | | Moved _NEXT_ macros into _alloc_ routines (where they belong).
* Moved MDOC_NEXT_SIBLING into mdoc_word (libmdoc).Kristaps Dzonsons2009-08-191-9/+0
| | | | De-chunking of word terms in libman.
* Noted areas that need work in libmdoc.Kristaps Dzonsons2009-08-131-1/+2
|
* Columns with `Bl -column' correctly check for CALLABLE status.Kristaps Dzonsons2009-07-291-27/+12
|
* Moved CALLABLE check to lookup_raw().Kristaps Dzonsons2009-07-291-17/+23
| | | | | | Made PARSABLE check occur prior to lookup(). Non-PARSEABLE macros no longer warn against having macro-like parameters. Non-CALLABLE macros no longer produce an error, just display their symbols (as in groff) (pointed out by joerg@netbsd.org).
* Patches and results of LLVM static analysis (thanks uqs@sporlein.net).Kristaps Dzonsons2009-07-251-5/+4
|
* Allow `An' to accept NULL arguments (-split/-nosplit).Kristaps Dzonsons2009-07-241-3/+5
|
* Noted that `Pa' can accept 0 arguments.Kristaps Dzonsons2009-07-211-0/+2
|
* Fixed and cleaned up "phrase" handling (`Bl -column' columns).Kristaps Dzonsons2009-07-191-59/+25
| | | | Found strange newline bug in -diag handling (and others?).
* Made `Cd' parseable (too many SYNOPSIS sections do this).Kristaps Dzonsons2009-07-191-1/+1
|
* Explicit-close macros now only warn when encountering trailing terms, notKristaps Dzonsons2009-07-191-6/+6
| | | | error out (try `.Ed foo').
* Documented `br' macro in mdoc.7.Kristaps Dzonsons2009-07-171-6/+2
| | | | Made `Pp' and `Lp' be inline_eoln() (not sure why they weren't before).
* Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).Kristaps Dzonsons2009-07-171-0/+2
|
* `Nd' is now a BFI (was an ELEM). Noted by joerg@netbsd.org, behaviour ok ↵Kristaps Dzonsons2009-07-121-3/+40
| | | | jmc@openbsd.org, etc.
* Made `In' handling work in new-groff style (see mdoc.samples).Kristaps Dzonsons2009-07-071-1/+1
|
* Tabularised error-code lookup in mdoc.c.Kristaps Dzonsons2009-07-071-2/+2
|
* Consolidated all err/warnings into mdoc.c via libmdoc.h.Kristaps Dzonsons2009-07-061-79/+11
|
* Initial removal of enum mdoc_warn from mdoc warnings (unnecessary complication).Kristaps Dzonsons2009-07-061-2/+2
|
* Removed superfluous FIXMEs (fixed already).Kristaps Dzonsons2009-06-171-2/+0
|
* Removed MDOC___: moved MDOC_Ap to its index (comments not passed into mdoc ↵Kristaps Dzonsons2009-06-161-2/+1
| | | | parser).
* `Lk' is correctly handled as CALLABLE (note groff munges nested output).Kristaps Dzonsons2009-06-121-4/+8
| | | | | | | `Mt' is now CALLABLE. Fixed missing validate/action of zero-element, non-called inline elements. Fixed missing validate/action of nested inline element re-calls. Fixed bogus column argv index in validator.
* `Ft' and `Ms' are now callable and compat-noted in mdoc.7 (joerg@netbsd.org).Kristaps Dzonsons2009-06-111-3/+3
|
* `An' now callable, historic use noted in mdoc.7 (joerg@netbsd.org).Kristaps Dzonsons2009-06-111-1/+1
|
* Fixed license email address.Kristaps Dzonsons2009-06-101-1/+1
|
* Using proper license template (const).Kristaps Dzonsons2009-04-121-12/+10
|
* Manual .Dt fields CAPITALISED.Kristaps Dzonsons2009-04-121-2/+6
| | | | | | | | Indent set to 5 chars (nroff compat). Half-indent set to 3 chars (nroff compat). Default behaviour is loose-y (ignore macro/char/escape). Added -fstrict. Added unknown-character ignoring.
* mdoc_tokhash -> hashKristaps Dzonsons2009-04-021-2/+2
| | | | Initial man hashtab (BROKEN).
* General clean-ups.Kristaps Dzonsons2009-03-311-6/+0
|
* Added some new manuals (mdoc.3 mandoc_char.7).Kristaps Dzonsons2009-03-271-11/+54
| | | | Support for .br in libman.
* Fixes in going over all OpenBSD manuals.Kristaps Dzonsons2009-03-271-10/+22
|
* -man linked to mandoc in documentation.Kristaps Dzonsons2009-03-231-4/+1
|
* First addition of -man macro support.Kristaps Dzonsons2009-03-231-0/+1446
Abstraction of mdoc.