=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.332 retrieving revision 1.334 diff -u -p -r1.332 -r1.334 --- mandoc/roff.c 2018/08/16 23:43:37 1.332 +++ mandoc/roff.c 2018/08/18 21:37:01 1.334 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.332 2018/08/16 23:43:37 schwarze Exp $ */ +/* $Id: roff.c,v 1.334 2018/08/18 21:37:01 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -335,7 +335,8 @@ const char *__roff_name[MAN_MAX + 1] = { "nf", "fi", "RE", "RS", "DT", "UC", "PD", "AT", "in", - "OP", "EX", "EE", "UR", + "SY", "YS", "OP", + "EX", "EE", "UR", "UE", "MT", "ME", NULL }; const char *const *roff_name = __roff_name; @@ -1204,7 +1205,14 @@ roff_res(struct roff *r, struct buf *buf, int ln, int r->man->next = ROFF_NEXT_SIBLING; } - /* Discard comments. */ + /* Line continuation with comment. */ + + if (stesc[1] == '#') { + *stesc = '\0'; + return ROFF_APPEND; + } + + /* Discard normal comments. */ while (stesc > start && stesc[-1] == ' ') stesc--;