From d8ab4168b1dc4e56c51c17a5c68c34df3014aeec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 10 Jun 2022 18:07:02 +0200 Subject: Support XML-style comments. --- xroff.lex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xroff.lex b/xroff.lex index 6282ca1..72ab379 100644 --- a/xroff.lex +++ b/xroff.lex @@ -10,6 +10,7 @@ \\ BEGIN(ESC); \n BEGIN(NEW); \ /* Ignore comment. */ ^< printf("."); BEGIN(REQ); /* Beginning of file. */ \< printf("\\c\n."); BEGIN(REQ); . ECHO; @@ -18,7 +19,8 @@ \n /* Ignore consecutive newlines. */ \\ printf("\n"); BEGIN(ESC); -\ /* Ignore comment. */ < printf("\n."); BEGIN(REQ); \. printf("\n\\&."); BEGIN(0); . printf("\n"); BEGIN(0); REJECT; -- cgit v1.2.3