summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lahfa2024-04-17 17:29:38 +0200
committerRyan Lahfa2024-04-18 16:03:53 +0200
commitbc808d128811396de40eb251528640e127f83fad (patch)
treee335ebcae0cf40a18adbe8739ea5ad4a459801b8
parent905ec4f1d62734af956fd54e2aa3872e3c8a8e09 (diff)
fix(backends/lean): extract more keywords from `lstlean.latex`
Taken from https://github.com/leanprover/lean4/blob/master/doc/latex/lstlean.tex#L12 and sorted. Tactics are ignored. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
-rw-r--r--compiler/ExtractBase.ml62
1 files changed, 62 insertions, 0 deletions
diff --git a/compiler/ExtractBase.ml b/compiler/ExtractBase.ml
index 92206ece..ddffb1c2 100644
--- a/compiler/ExtractBase.ml
+++ b/compiler/ExtractBase.ml
@@ -915,38 +915,100 @@ let keywords () =
]
| Lean ->
[
+ "Pi";
"Type";
+ "abbrev";
+ "alias";
"as";
+ "at";
+ "attribute";
+ "axiom";
+ "axioms";
+ "begin";
+ "break";
"by";
+ "calc";
+ "catch";
"class";
+ "const";
+ "constant";
+ "constants";
+ "continue";
"decreasing_by";
"def";
+ "definition";
"deriving";
"do";
"else";
"end";
+ "example";
+ "exists";
+ "export";
+ "extends";
"for";
+ "forall";
"from";
+ "fun";
"have";
+ "hiding";
"if";
"import";
+ "in";
+ "include";
"inductive";
+ "infix";
+ "infixl";
+ "infixr";
"instance";
+ "lemma";
"let";
+ "local";
"macro";
+ "macro_rules";
"match";
+ "mut";
+ "mutual";
"namespace";
+ "noncomputable";
+ "notation";
+ "omit";
"opaque";
"opaque_defs";
"open";
+ "override";
+ "parameter";
+ "parameters";
+ "partial";
+ "postfix";
+ "precedence";
+ "prefix";
+ "prelude";
+ "private";
+ "protected";
+ "raw";
+ "record";
+ "reduce";
+ "renaming";
+ "replacing";
+ "reserve";
"run_cmd";
+ "section";
"set_option";
"simp";
"structure";
"syntax";
"termination_by";
"then";
+ "theorem";
+ "theory";
+ "universe";
+ "universes";
+ "unless";
"unsafe";
+ "using";
+ "using_well_founded";
+ "variable";
+ "variables";
"where";
"with";
]