Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow roff_parseln() to be re-run. | Kristaps Dzonsons | 2010-05-16 | 1 | -28/+30 |
| | | | | | | | | | Allow roff_parseln() to manipulate the line buffer offset. This is used in situations like `.ie n .TH FOO 1' or `.ie n .ie n', where the line buffer offset is recalculated then the roff parser re-run. Fix mdoc_parseln() and man_parseln() to accept the initial line offset. WARNING: backed-out ALL roff macros whilst accomodating for how roff handles multi-line conditionals (in short, re-running the parser). | ||||
* | Fix allowing silly '\'' control character. | Kristaps Dzonsons | 2010-05-16 | 1 | -1/+1 |
| | |||||
* | LIBRARY can also occur in section 9. | Kristaps Dzonsons | 2010-05-15 | 1 | -1/+3 |
| | | | | | | All manual sections (unknown, 3p, 3f, etc.) correctly handled by -mdoc. Useful warning printed if unknown manual section. Checking for manual sections (e.g., LIBRARY) checks only first character, so 3p, 3f, etc. are free. | ||||
* | More EOS: append_delims() fitted with EOS detection, so ANY macro with ↵ | Kristaps Dzonsons | 2010-05-15 | 1 | -0/+2 |
| | | | | | | appended delimiters will properly EOS. Fixed mandoc_eos() to accept sentence punctuation followed by close-delim buffers. | ||||
* | Backed out check for `Ex' manual sec (ok schwarze@, joerg@), in turn backing ↵ | Kristaps Dzonsons | 2010-05-14 | 1 | -1/+0 |
| | | | | out check_msec() and deps. | ||||
* | Fixed bug in -Thtml -mdoc where `Lb' would line-break in LIBRARY section. | Kristaps Dzonsons | 2010-05-13 | 1 | -4/+10 |
| | | | | | Fixed assumption that parse-point == 1 equates to beginning of line (false if whitespace separates macro and control character). Fixed line-break for non-first-macro in several SYNOPSIS macros. | ||||
* | Put the eos-checker into libmandoc.h. | Kristaps Dzonsons | 2010-05-12 | 1 | -13/+1 |
| | | | | Added bits in mdoc.7 and man.7 about EOS spacing. | ||||
* | Tiny EOS patch. Back-end cues front-end through flag. Front-end cues ↵ | Kristaps Dzonsons | 2010-05-12 | 1 | -1/+27 |
| | | | | output engine with flag. | ||||
* | Fix asserts on stripping end-of-line whitespace. | Kristaps Dzonsons | 2010-05-08 | 1 | -3/+1 |
| | |||||
* | Strip trailing, unescaped whitespace from free-form, non-literal lines (like ↵ | Kristaps Dzonsons | 2010-05-08 | 1 | -3/+17 |
| | | | | groff). | ||||
* | Lint fixes (type-safety for enums via -cefuh). | Kristaps Dzonsons | 2010-05-08 | 1 | -9/+11 |
| | |||||
* | De-chunking of text removed from parsers. This is a significant change (and ↵ | Kristaps Dzonsons | 2010-05-07 | 1 | -65/+28 |
| | | | | | | I don't really like it), but it's what groff does. Distinction of ARGS_PHRASE and ARGS_PPHRASE in backend (not yet used). | ||||
* | Sync'd mdoc.c's function names with man.c. | Kristaps Dzonsons | 2010-04-08 | 1 | -7/+13 |
| | | | | Prompted by Ingo and Claus Assman, added warn/ignore for text lines beginning with `\."'. | ||||
* | Properly checked in Ingo Schwarze' prologue/body-breaking patch, which I'd ↵ | Kristaps Dzonsons | 2010-04-08 | 1 | -12/+10 |
| | | | | munged. | ||||
* | Migrating mdoc_node_free() and mdoc_node_freelist() to use ↵ | Kristaps Dzonsons | 2010-04-06 | 1 | -9/+47 |
| | | | | mdoc_node_delete(), which has a more intuitive interface and mirrors libman. | ||||
* | Commited relaxation of title-less document error-out noted by Christian ↵ | Kristaps Dzonsons | 2010-04-05 | 1 | -2/+17 |
| | | | | Weisgerber and patched by Ingo Schwarze. | ||||
* | Merging patch by Ingo Schwarze. | Kristaps Dzonsons | 2010-04-03 | 1 | -2/+12 |
| | |||||
* | Re-adjusting UGLY tags. | Kristaps Dzonsons | 2010-03-31 | 1 | -0/+1 |
| | | | | | 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 Dzonsons | 2010-03-31 | 1 | -11/+11 |
| | | | | | | | 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. | ||||
* | Check for white-space at the end of free-form text. Lack of check spotted ↵ | Kristaps Dzonsons | 2010-01-07 | 1 | -0/+15 |
| | | | | by Jason McIntyre. | ||||
* | Check for white-space at end of stand-alone macro line. | Kristaps Dzonsons | 2010-01-07 | 1 | -6/+14 |
| | |||||
* | Big check-in of compatibility layer. This should work on most major ↵ | Kristaps Dzonsons | 2010-01-01 | 1 | -11/+10 |
| | | | | architectures. Thanks to Joerg Sonnenberger. | ||||
* | libmdoc and libman now using non-recoverable allocations (simpler code). | Kristaps Dzonsons | 2009-10-30 | 1 | -44/+14 |
| | |||||
* | bzero() -> memset() (noted by Joerg Sonnenberger). | Kristaps Dzonsons | 2009-10-27 | 1 | -1/+1 |
| | |||||
* | -man also prints unknown macro (noted by Joerg Sonnenberger). | Kristaps Dzonsons | 2009-10-26 | 1 | -1/+0 |
| | |||||
* | Added `%U' to -mdoc (doesn't render in a nice way yet). | Kristaps Dzonsons | 2009-10-24 | 1 | -1/+3 |
| | |||||
* | Added warning about specifying list arguments before type (suggested by ↵ | Kristaps Dzonsons | 2009-10-15 | 1 | -0/+1 |
| | | | | Joerg Sonnenberg). | ||||
* | Added support for `Bd -centered', which appears in newer groffs (not yet ↵ | Kristaps Dzonsons | 2009-10-15 | 1 | -1/+1 |
| | | | | implemented in centre-capable front-ends, i.e., -Thtml). | ||||
* | Added EBADCHILD error (bad child of parent context). | Kristaps Dzonsons | 2009-09-24 | 1 | -1/+2 |
| | | | | | `Rs' post-checks that all children are proper bibliographic elements. `Rs' correctly re-orders its children as per groff's output (including %C). | ||||
* | FreeBSD compile fixes (uqs@spoerlein.net). | Kristaps Dzonsons | 2009-09-23 | 1 | -0/+2 |
| | |||||
* | Lookup hashes are now static tables, ordered first-level by second ↵ | Kristaps Dzonsons | 2009-09-16 | 1 | -7/+4 |
| | | | | character, then randomly along a chain. Improves performance by a small fraction and considerably cleans up hash sources. | ||||
* | Added check for graphable characters in initial-line parse for libman and ↵ | Kristaps Dzonsons | 2009-08-22 | 1 | -0/+6 |
| | | | | libmdoc (joerg@netbsd.org). | ||||
* | Fix to libmdoc passing over delimiters. | Kristaps Dzonsons | 2009-08-20 | 1 | -4/+2 |
| | | | | `RS' and `RE' documented in man.7. | ||||
* | In-line documentation of mdoc_macro file. | Kristaps Dzonsons | 2009-08-19 | 1 | -5/+20 |
| | | | | Moved _NEXT_ macros into _alloc_ routines (where they belong). | ||||
* | Moved MDOC_NEXT_SIBLING into mdoc_word (libmdoc). | Kristaps Dzonsons | 2009-08-19 | 1 | -8/+6 |
| | | | | De-chunking of word terms in libman. | ||||
* | libmdoc accepts whitespace following control character.VERSION.1.9.0 | Kristaps Dzonsons | 2009-08-18 | 1 | -12/+16 |
| | |||||
* | Noted areas that need work in libmdoc. | Kristaps Dzonsons | 2009-08-13 | 1 | -0/+2 |
| | |||||
* | Columns with `Bl -column' correctly check for CALLABLE status. | Kristaps Dzonsons | 2009-07-29 | 1 | -2/+4 |
| | |||||
* | Moved CALLABLE check to lookup_raw(). | Kristaps Dzonsons | 2009-07-29 | 1 | -6/+4 |
| | | | | | | 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). | ||||
* | main.c using fprintf instead of warnx for parse errors (like cc). | Kristaps Dzonsons | 2009-07-27 | 1 | -2/+2 |
| | | | | | | Error string is now file:line:col: message. Removed sed from vim -q example in manuals.7. Fixed column reporting (off by one). | ||||
* | Replaced ugly TABSEP handling with simpler routine. | Kristaps Dzonsons | 2009-07-20 | 1 | -1/+0 |
| | |||||
* | Removed EARGVPARM (superfluous, overly error-generating). | Kristaps Dzonsons | 2009-07-17 | 1 | -1/+0 |
| | | | | Added `sp' handler. | ||||
* | Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org). | Kristaps Dzonsons | 2009-07-17 | 1 | -1/+1 |
| | |||||
* | Added Linux compat (strlcpy). | Kristaps Dzonsons | 2009-07-16 | 1 | -0/+4 |
| | |||||
* | libmdoc now breaks up free-form lines into tokens prior to be passed to the ↵ | Kristaps Dzonsons | 2009-07-15 | 1 | -33/+95 |
| | | | | backend (simplifies LITERAL mode in front-end). | ||||
* | Replacement of `Lb' in mdoc_action.c. | Kristaps Dzonsons | 2009-07-12 | 1 | -0/+1 |
| | | | | | | Added warning against bogus `Lb' (like groff does). Added proper quotes around `Lb' in mdoc_term.c. Moved mdoc_a2lib -> libmdoc (where it belongs). | ||||
* | Tabularised error-code lookup in mdoc.c. | Kristaps Dzonsons | 2009-07-07 | 1 | -174/+60 |
| | |||||
* | Consolidated all err/warnings into mdoc.c via libmdoc.h. | Kristaps Dzonsons | 2009-07-06 | 1 | -126/+187 |
| | |||||
* | Initial removal of enum mdoc_warn from mdoc warnings (unnecessary complication). | Kristaps Dzonsons | 2009-07-06 | 1 | -13/+8 |
| | |||||
* | Added nchild decrement in libman (not used, but better in than forgotten). | Kristaps Dzonsons | 2009-06-18 | 1 | -0/+5 |
| | | | | Added nchild to libmdoc, deprecated count() functions in validator. |