diff options
| author | Li-yao Xia | 2020-08-03 10:50:59 -0400 |
|---|---|---|
| committer | Li-yao Xia | 2020-08-03 10:50:59 -0400 |
| commit | 2793c3cdfd096355270ea02123a7f8fbf64c8076 (patch) | |
| tree | ddac7113d0301ac14dc124c9570de3a89b539051 /tools | |
| parent | e0b8b4684eaf76f897ac708ffddbb8e4977ac754 (diff) | |
| parent | ce233d5b4a6f8d506c37a2a492679a66f9618a94 (diff) | |
Merge PR #12772: coqdoc: Fix the “details” environment
Reviewed-by: Lysxia
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/coqdoc/cpretty.mll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/coqdoc/cpretty.mll b/tools/coqdoc/cpretty.mll index b801a3b06e..5d210b2e60 100644 --- a/tools/coqdoc/cpretty.mll +++ b/tools/coqdoc/cpretty.mll @@ -504,9 +504,9 @@ rule coq_bol = parse { Lexing.new_line lexbuf; begin_show (); coq_bol lexbuf } | space* end_show nl { Lexing.new_line lexbuf; end_show (); coq_bol lexbuf } - | space* begin_details nl - { Lexing.new_line lexbuf; - let s = details_body lexbuf in + | space* begin_details (* At this point, the comment remains open, + and will be closed by [details_body] *) + { let s = details_body lexbuf in Output.end_coq (); begin_details s; Output.start_coq (); coq_bol lexbuf } | space* end_details nl { Lexing.new_line lexbuf; |
