version 1.332, 2018/08/16 23:43:37 |
version 1.335, 2018/08/18 22:05:43 |
Line 335 const char *__roff_name[MAN_MAX + 1] = { |
|
Line 335 const char *__roff_name[MAN_MAX + 1] = { |
|
"nf", "fi", |
"nf", "fi", |
"RE", "RS", "DT", "UC", |
"RE", "RS", "DT", "UC", |
"PD", "AT", "in", |
"PD", "AT", "in", |
"OP", "EX", "EE", "UR", |
"SY", "YS", "OP", |
|
"EX", "EE", "UR", |
"UE", "MT", "ME", NULL |
"UE", "MT", "ME", NULL |
}; |
}; |
const char *const *roff_name = __roff_name; |
const char *const *roff_name = __roff_name; |
Line 1204 roff_res(struct roff *r, struct buf *buf, int ln, int |
|
Line 1205 roff_res(struct roff *r, struct buf *buf, int ln, int |
|
r->man->next = ROFF_NEXT_SIBLING; |
r->man->next = ROFF_NEXT_SIBLING; |
} |
} |
|
|
/* Discard comments. */ |
/* Line continuation with comment. */ |
|
|
while (stesc > start && stesc[-1] == ' ') |
if (stesc[1] == '#') { |
|
*stesc = '\0'; |
|
return ROFF_APPEND; |
|
} |
|
|
|
/* Discard normal comments. */ |
|
|
|
while (stesc > start && stesc[-1] == ' ' && |
|
(stesc == start + 1 || stesc[-2] != '\\')) |
stesc--; |
stesc--; |
*stesc = '\0'; |
*stesc = '\0'; |
break; |
break; |