From 25248c7a378f8e875ccb5cf55d1d7a9855bde93e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 21 Oct 2018 12:07:07 -0700 Subject: Man reader: move macro resolution to lexer phase. We also introduce a new type ManTokens (a sequence of tokens) and remove MComment. This allows lexers to return empty strings of tokens, or multiple tokens (as when macros are resolved). One test still fails. This needs to be fixed by moving handling of .BI, .I, etc. to the parsing phase. --- test/man-reader.man | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/man-reader.man') diff --git a/test/man-reader.man b/test/man-reader.man index acda23a00..1ff714c14 100644 --- a/test/man-reader.man +++ b/test/man-reader.man @@ -207,3 +207,15 @@ site .MT me@example.com my email address. .ME +.SH Macros +.de au +.B +Me Myself +.. +.de auth !! +.I +The author is \$1. +.!! +.au +and I. +.auth "John Jones" -- cgit v1.2.3