diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-29 19:28:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-29 19:28:04 +0000 |
commit | c3b989ab9fc89a8c8b709c612e5f9a40e523c983 (patch) | |
tree | 39688525345676226553f1fee8e89006e0ab1dea /mdoc_strings.c | |
parent | e34909a15faed90ad1d9efd5e6d44270ab386b5c (diff) | |
download | mandoc-c3b989ab9fc89a8c8b709c612e5f9a40e523c983.tar.gz |
Integrate Ingo Schwarze's patch for mdoc_iscdelim() (tri-state for opening 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.
Diffstat (limited to 'mdoc_strings.c')
-rw-r--r-- | mdoc_strings.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mdoc_strings.c b/mdoc_strings.c index be96ca87..3ec989f6 100644 --- a/mdoc_strings.c +++ b/mdoc_strings.c @@ -68,6 +68,12 @@ mdoc_iscdelim(char p) switch (p) { case('|'): /* FALLTHROUGH */ + case('('): + /* FALLTHROUGH */ + case('['): + /* FALLTHROUGH */ + case('{'): + return(1); case('.'): /* FALLTHROUGH */ case(','): @@ -80,18 +86,12 @@ mdoc_iscdelim(char p) /* FALLTHROUGH */ case('!'): /* FALLTHROUGH */ - case('('): - /* FALLTHROUGH */ case(')'): /* FALLTHROUGH */ - case('['): - /* FALLTHROUGH */ case(']'): /* FALLTHROUGH */ - case('{'): - /* FALLTHROUGH */ case('}'): - return(1); + return(2); default: break; } |