summaryrefslogtreecommitdiffstats
path: root/mdoc_strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 19:28:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 19:28:04 +0000
commitc3b989ab9fc89a8c8b709c612e5f9a40e523c983 (patch)
tree39688525345676226553f1fee8e89006e0ab1dea /mdoc_strings.c
parente34909a15faed90ad1d9efd5e6d44270ab386b5c (diff)
downloadmandoc-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.c14
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;
}