Zulip Chat Archive

Stream: lean4

Topic: module doc comments


Mario Carneiro (Jul 14 2021 at 03:46):

This definition of module doc comments doesn't work, because the lexer has a special case for /-- comments that does not extend to /-!. As a result, module doc comments don't show up in the parse tree and can't be reparsed even with a command parser like this:

@[commandParser] def modDocComment := leading_parser ppDedent $ "/-!" >> commentBody >> ppLine

Last updated: Dec 20 2023 at 11:08 UTC