Skip to content

Commit 9cd2775

Browse files
committed
Update to the latest keywords list and remove the letter environment.
1 parent 5958c2a commit 9cd2775

1 file changed

Lines changed: 27 additions & 28 deletions

File tree

assets/latex/eclistings.sty

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,47 @@
55
\RequirePackage{xcolor}
66
\RequirePackage{xparse}
77

8-
% EasyCrypt %
9-
% Language
8+
% EasyCrypt % Language
109
\lstdefinelanguage{easycrypt}{%
1110
sensitive=true, % Case sensitive keywords
12-
% Keywords: Meta/Specification language
11+
% Keywords: Global
1312
morekeywords=[1]%
1413
{
15-
abbrev, abstract, as, assert, async, axiom, axiomatized, class, clone,
16-
const, debug, declare, eager, ehoare, elif, else, end, equiv, exists, exit,
17-
export, fail, for, forall, from, fun, glob, global, goal, hint, hoare, if,
18-
import, in, include, inductive, instance, islossless, lemma, let, local, locate,
19-
match, module, nosmt, notation, of, op, phoare, pragma, Pr, pred, print, proc,
20-
proof, prover, qed, quantum, realize, remove, rename, require, res, return,
21-
search, section, Self, subtype, then, theory, time, timeout, Top, type,
22-
undo, var, while, why3, with
14+
Pr, Self, Top, abbrev, abort, abstract, as, axiom, axiomatized, clone, const,
15+
declare, dump, end, exception, exit, export, from, global, goal, hint, import,
16+
include, inductive, instance, lemma, local, locate, module, notation, of, op,
17+
pred, print, proof, prover, qed, realize, remove, rename, require, search,
18+
section, subtype, theory, timeout, type, why3, with
19+
},
20+
% Keywords: internal, and programming language
21+
morekeywords=[2]%
22+
{
23+
debug, fail, pragma, time, undo, async, ehoare, elif, else, equiv, exists,
24+
for, forall, fun, glob, hoare, if, in, is, islossless, let, match, phoare,
25+
proc, raise, res, return, then, var, while
2326
},
2427
% Keywords: Regular (i.e., non-closing) tactics
2528
morekeywords=[2]%
2629
{
27-
algebra, alias, apply, async, auto, beta,
28-
byequiv, byphoare, bypr, call, case, cbv, cfold,
29-
change, clear, congr, conseq, cut, delta, dump,
30-
ecall, elim, eta, exfalso, exlim, fel, field, fieldeq, fission,
31-
fusion, gen, have, hoare, idtac, inline, interleave, iota, kill, left, logic,
32-
modpath, move, outline, pose, pr_bounded, progress, rcondf,
33-
rcondt, replace, rewrite, right, ring, ringeq, rnd, rndsem, rwnormal,
34-
seq, sim, simplify, skip, sp, split, splitwhile, subst,
35-
suff, swap, symmetry, transitivity, trivial, unroll, weakmem, wlog,
36-
wp, zeta
30+
algebra, alias, apply, auto, beta, byehoare, byequiv, byphoare, bypr, byupto,
31+
call, case, cbv, cfold, change, clear, congr, conseq, delta, eager, ecall,
32+
elim, eta, exfalso, exlim, fel, field, fieldeq, fission, fusion, gen, have,
33+
idassign, idtac, inline, interleave, iota, kill, left, logic, modpath, move,
34+
outline, pose, pr_bounded, progress, rcondf, rcondt, replace, rewrite, right,
35+
ring, ringeq, rnd, rndsem, rwnormal, seq, sim, simplify, skip, sp, split,
36+
splitwhile, subst, suff, swap, symmetry, transitivity, trivial, unroll,
37+
weakmem, wlog, wp, zeta
3738
},
38-
% Keywords: Closing tactics/tacticals
39+
% Keywords: Closing/byclose tactics and dangerous commands
3940
morekeywords=[3]%
4041
{
41-
abort, admit, admitted, assumption, by, check, done,
42-
edit, exact, fix, reflexivity, smt, solve
42+
assumption, by, check, coq, done, edit, exact, fix, reflexivity, smt, solve
4343
},
44-
% Keywords: Tacticals
44+
% Keywords: Tacticals and dangerous commands
4545
morekeywords=[4]%
4646
{
47-
do, expect, first, last, strict, try
47+
do, expect, first, last, try,
48+
admit, admitted
4849
},
4950
comment=[n]{(*}{*)}, % Multi-line, nested comments delimited by (* and *)
5051
string=[d]{"}, % Strings delimited by " and ", non-escapable
@@ -74,7 +75,6 @@
7475
}
7576

7677
% Define default colors based on availability of colorblind colors
77-
\makeatletter
7878
\@ifpackageloaded{colorblind}{
7979
\lstdefinestyle{easycrypt-default}{%
8080
style=easycrypt-base,
@@ -104,7 +104,6 @@
104104
numberstyle={\small\color{gray}},
105105
}
106106
}
107-
\makeatother
108107

109108
% Style for drafting/debugging (explicit spaces/tabs)
110109
\lstdefinestyle{easycrypt-draft}{%

0 commit comments

Comments
 (0)