Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[coqdoc] Fix coq#11353: coqdoc -g omits all sentences with decorations
- Loading branch information
Showing
5 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- **Fixed:** | ||
``coqdoc`` with option ``-g`` (Gallina only) omits all sentences with decorations | ||
(`#11394 <https://github.com/coq/coq/pull/11394>`_, | ||
fixes `#11353 <https://github.com/coq/coq/issues/11353>`_, | ||
by Karl Palmskog). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<link href="coqdoc.css" rel="stylesheet" type="text/css" /> | ||
<title>Coqdoc.bug11353</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="page"> | ||
|
||
<div id="header"> | ||
</div> | ||
|
||
<div id="main"> | ||
|
||
<h1 class="libtitle">Library Coqdoc.bug11353</h1> | ||
|
||
<div class="code"> | ||
<span class="id" title="keyword">Definition</span> <a name="a"><span class="id" title="definition">a</span></a> := 0. #[ <span class="id" title="var">universes</span>( <span class="id" title="var">template</span>) ]<br/> | ||
<span class="id" title="keyword">Inductive</span> <a name="mysum"><span class="id" title="inductive">mysum</span></a> (<span class="id" title="var">A</span> <span class="id" title="var">B</span>:<span class="id" title="keyword">Type</span>) : <span class="id" title="keyword">Type</span> :=<br/> | ||
| <a name="myinl"><span class="id" title="constructor">myinl</span></a> : <a class="idref" href="Coqdoc.bug11353.html#A"><span class="id" title="variable">A</span></a> <a class="idref" href="http://coq.inria.fr/stdlib/Coq.Init.Logic.html#1c93e43e07fbeaeb6a625cb6614beb5d"><span class="id" title="notation">→</span></a> <a class="idref" href="Coqdoc.bug11353.html#mysum"><span class="id" title="inductive">mysum</span></a> <a class="idref" href="Coqdoc.bug11353.html#A"><span class="id" title="variable">A</span></a> <a class="idref" href="Coqdoc.bug11353.html#B"><span class="id" title="variable">B</span></a><br/> | ||
| <a name="myinr"><span class="id" title="constructor">myinr</span></a> : <a class="idref" href="Coqdoc.bug11353.html#B"><span class="id" title="variable">B</span></a> <a class="idref" href="http://coq.inria.fr/stdlib/Coq.Init.Logic.html#1c93e43e07fbeaeb6a625cb6614beb5d"><span class="id" title="notation">→</span></a> <a class="idref" href="Coqdoc.bug11353.html#mysum"><span class="id" title="inductive">mysum</span></a> <a class="idref" href="Coqdoc.bug11353.html#A"><span class="id" title="variable">A</span></a> <a class="idref" href="Coqdoc.bug11353.html#B"><span class="id" title="variable">B</span></a>.<br/> | ||
|
||
<br/> | ||
#[<span class="id" title="var">local</span>]<span class="id" title="keyword">Definition</span> <a name="b"><span class="id" title="definition">b</span></a> := 1.<br/> | ||
</div> | ||
</div> | ||
|
||
<div id="footer"> | ||
<hr/><a href="index.html">Index</a><hr/>This page has been generated by <a href="http://coq.inria.fr/">coqdoc</a> | ||
</div> | ||
|
||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
\documentclass[12pt]{report} | ||
\usepackage[utf8x]{inputenc} | ||
|
||
%Warning: tipa declares many non-standard macros used by utf8x to | ||
%interpret utf8 characters but extra packages might have to be added | ||
%such as "textgreek" for Greek letters not already in tipa | ||
%or "stmaryrd" for mathematical symbols. | ||
%Utf8 codes missing a LaTeX interpretation can be defined by using | ||
%\DeclareUnicodeCharacter{code}{interpretation}. | ||
%Use coqdoc's option -p to add new packages or declarations. | ||
\usepackage{tipa} | ||
|
||
\usepackage[T1]{fontenc} | ||
\usepackage{fullpage} | ||
\usepackage{coqdoc} | ||
\usepackage{amsmath,amssymb} | ||
\usepackage{url} | ||
\begin{document} | ||
\coqlibrary{Coqdoc.bug11353}{Library }{Coqdoc.bug11353} | ||
|
||
\begin{coqdoccode} | ||
\coqdocnoindent | ||
\coqdockw{Definition} \coqdef{Coqdoc.bug11353.a}{a}{\coqdocdefinition{a}} := 0. \#[ \coqdocvar{universes}( \coqdocvar{template}) ]\coqdoceol | ||
\coqdocnoindent | ||
\coqdockw{Inductive} \coqdef{Coqdoc.bug11353.mysum}{mysum}{\coqdocinductive{mysum}} (\coqdocvar{A} \coqdocvar{B}:\coqdockw{Type}) : \coqdockw{Type} :=\coqdoceol | ||
\coqdocindent{1.00em} | ||
\ensuremath{|} \coqdef{Coqdoc.bug11353.myinl}{myinl}{\coqdocconstructor{myinl}} : \coqdocvariable{A} \coqexternalref{::type scope:x '->' x}{http://coq.inria.fr/stdlib/Coq.Init.Logic}{\coqdocnotation{\ensuremath{\rightarrow}}} \coqref{Coqdoc.bug11353.mysum}{\coqdocinductive{mysum}} \coqdocvariable{A} \coqdocvariable{B}\coqdoceol | ||
\coqdocindent{1.00em} | ||
\ensuremath{|} \coqdef{Coqdoc.bug11353.myinr}{myinr}{\coqdocconstructor{myinr}} : \coqdocvariable{B} \coqexternalref{::type scope:x '->' x}{http://coq.inria.fr/stdlib/Coq.Init.Logic}{\coqdocnotation{\ensuremath{\rightarrow}}} \coqref{Coqdoc.bug11353.mysum}{\coqdocinductive{mysum}} \coqdocvariable{A} \coqdocvariable{B}.\coqdoceol | ||
\coqdocemptyline | ||
\coqdocnoindent | ||
\#[\coqdocvar{local}]\coqdockw{Definition} \coqdef{Coqdoc.bug11353.b}{b}{\coqdocdefinition{b}} := 1.\coqdoceol | ||
\end{coqdoccode} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(* -*- coq-prog-args: ("-g") -*- *) | ||
Definition a := 0. #[ (* templatize *) universes( template) ] | ||
Inductive mysum (A B:Type) : Type := | ||
| myinl : A -> mysum A B | ||
| myinr : B -> mysum A B. | ||
|
||
#[local]Definition b := 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters