fix(extras/latex/*): fix handling of attributes
This commit is contained in:
parent
716da2488b
commit
fee6ba8749
3 changed files with 11 additions and 11 deletions
|
@ -31,7 +31,6 @@ preamble in your document:
|
||||||
\definecolor{commentcolor}{rgb}{0.4, 0.4, 0.4} % grey
|
\definecolor{commentcolor}{rgb}{0.4, 0.4, 0.4} % grey
|
||||||
\definecolor{symbolcolor}{rgb}{0.0, 0.1, 0.6} % blue
|
\definecolor{symbolcolor}{rgb}{0.0, 0.1, 0.6} % blue
|
||||||
\definecolor{sortcolor}{rgb}{0.1, 0.5, 0.1} % green
|
\definecolor{sortcolor}{rgb}{0.1, 0.5, 0.1} % green
|
||||||
\definecolor{attributecolor}{rgb}{0.7, 0.1, 0.1} % red
|
|
||||||
|
|
||||||
\usepackage{listings}
|
\usepackage{listings}
|
||||||
\def\lstlanguagefiles{lstlean.tex}
|
\def\lstlanguagefiles{lstlean.tex}
|
||||||
|
|
|
@ -41,15 +41,17 @@ injection, congruence, reflexivity, symmetry, transitivity, state, induction, in
|
||||||
},
|
},
|
||||||
|
|
||||||
% attributes
|
% attributes
|
||||||
morekeywords=[4]{
|
% note: 'otherkeywords' is needed because these use a different symbol.
|
||||||
\[persistent\], \[notation\], \[visible\], \[instance\], \[class\], \[parsing-only\],
|
% this command doesn't allow us to specify a number -- they are put with [1]
|
||||||
\[coercion\], \[unfold-f\], \[constructor\], \[reducible\],
|
otherkeywords={
|
||||||
\[irreducible\], \[semireducible\], \[quasireducible\], \[wf\],
|
[persistent], [notation], [visible], [instance], [class], [parsing-only],
|
||||||
\[whnf\], \[multiple-instances\], \[none\],
|
[coercion], [unfold-f], [constructor], [reducible],
|
||||||
\[decls\], \[declarations\], \[coercions\], \[classes\],
|
[irreducible], [semireducible], [quasireducible], [wf],
|
||||||
\[symm\], \[subst\], \[refl\], \[trans\], \[recursor\],
|
[whnf], [multiple-instances], [none],
|
||||||
\[notations\], \[abbreviations\], \[begin-end-hints\], \[tactic-hints\],
|
[decls], [declarations], [coercions], [classes],
|
||||||
\[reduce-hints\], \[unfold-hints\], \[aliases\], \[eqv\], \[localrefinfo\]
|
[symm], [subst], [refl], [trans], [recursor],
|
||||||
|
[notations], [abbreviations], [begin-end-hints], [tactic-hints],
|
||||||
|
[reduce-hints], [unfold-hints], [aliases], [eqv], [localrefinfo]
|
||||||
},
|
},
|
||||||
|
|
||||||
% Various symbols
|
% Various symbols
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
\definecolor{commentcolor}{rgb}{0.4, 0.4, 0.4} % grey
|
\definecolor{commentcolor}{rgb}{0.4, 0.4, 0.4} % grey
|
||||||
\definecolor{symbolcolor}{rgb}{0.0, 0.1, 0.6} % blue
|
\definecolor{symbolcolor}{rgb}{0.0, 0.1, 0.6} % blue
|
||||||
\definecolor{sortcolor}{rgb}{0.1, 0.5, 0.1} % green
|
\definecolor{sortcolor}{rgb}{0.1, 0.5, 0.1} % green
|
||||||
\definecolor{attributecolor}{rgb}{0.7, 0.1, 0.1} % red
|
|
||||||
|
|
||||||
\usepackage{listings}
|
\usepackage{listings}
|
||||||
\def\lstlanguagefiles{lstlean.tex}
|
\def\lstlanguagefiles{lstlean.tex}
|
||||||
|
|
Loading…
Reference in a new issue