fix(extras/latex/*): fix handling of attributes

This commit is contained in:
Jeremy Avigad 2015-05-24 21:39:17 +10:00 committed by Leonardo de Moura
parent 716da2488b
commit fee6ba8749
3 changed files with 11 additions and 11 deletions

View file

@ -31,7 +31,6 @@ preamble in your document:
\definecolor{commentcolor}{rgb}{0.4, 0.4, 0.4} % grey
\definecolor{symbolcolor}{rgb}{0.0, 0.1, 0.6} % blue
\definecolor{sortcolor}{rgb}{0.1, 0.5, 0.1} % green
\definecolor{attributecolor}{rgb}{0.7, 0.1, 0.1} % red
\usepackage{listings}
\def\lstlanguagefiles{lstlean.tex}

View file

@ -41,15 +41,17 @@ injection, congruence, reflexivity, symmetry, transitivity, state, induction, in
},
% attributes
morekeywords=[4]{
\[persistent\], \[notation\], \[visible\], \[instance\], \[class\], \[parsing-only\],
\[coercion\], \[unfold-f\], \[constructor\], \[reducible\],
\[irreducible\], \[semireducible\], \[quasireducible\], \[wf\],
\[whnf\], \[multiple-instances\], \[none\],
\[decls\], \[declarations\], \[coercions\], \[classes\],
\[symm\], \[subst\], \[refl\], \[trans\], \[recursor\],
\[notations\], \[abbreviations\], \[begin-end-hints\], \[tactic-hints\],
\[reduce-hints\], \[unfold-hints\], \[aliases\], \[eqv\], \[localrefinfo\]
% note: 'otherkeywords' is needed because these use a different symbol.
% this command doesn't allow us to specify a number -- they are put with [1]
otherkeywords={
[persistent], [notation], [visible], [instance], [class], [parsing-only],
[coercion], [unfold-f], [constructor], [reducible],
[irreducible], [semireducible], [quasireducible], [wf],
[whnf], [multiple-instances], [none],
[decls], [declarations], [coercions], [classes],
[symm], [subst], [refl], [trans], [recursor],
[notations], [abbreviations], [begin-end-hints], [tactic-hints],
[reduce-hints], [unfold-hints], [aliases], [eqv], [localrefinfo]
},
% Various symbols

View file

@ -9,7 +9,6 @@
\definecolor{commentcolor}{rgb}{0.4, 0.4, 0.4} % grey
\definecolor{symbolcolor}{rgb}{0.0, 0.1, 0.6} % blue
\definecolor{sortcolor}{rgb}{0.1, 0.5, 0.1} % green
\definecolor{attributecolor}{rgb}{0.7, 0.1, 0.1} % red
\usepackage{listings}
\def\lstlanguagefiles{lstlean.tex}