aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-04-12 22:21:31 +0200
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-04-12 22:21:31 +0200
commit582fab072375924ce380148c8a92dbc2b4ec30cc (patch)
tree28faf805d7484ddde84857da3aebb7f4ed5cb524
parent007ab31b4d1b9457d2758a614aed5a49dee53b62 (diff)
parent209ff6ae4367b8c96b59bc318f4791dcb2251c14 (diff)
Merge PR#510: Correctly identify [Time Defined.] as a defined
-rw-r--r--stm/stm.ml10
1 files changed, 7 insertions, 3 deletions
diff --git a/stm/stm.ml b/stm/stm.ml
index 3efad70fb..822229f47 100644
--- a/stm/stm.ml
+++ b/stm/stm.ml
@@ -1913,10 +1913,14 @@ let collect_proof keep cur hd brkind id =
| [] -> no_name
| id :: _ -> Id.to_string id in
let loc = (snd cur).loc in
- let is_defined = function
- | _, { expr = VernacEndProof (Proved ((Transparent|Opaque (Some _)),_)) } ->
- true
+ let rec is_defined_expr = function
+ | VernacEndProof (Proved ((Transparent|Opaque (Some _)),_)) -> true
+ | VernacTime (_, e) -> is_defined_expr e
+ | VernacRedirect (_, (_, e)) -> is_defined_expr e
+ | VernacTimeout (_, e) -> is_defined_expr e
| _ -> false in
+ let is_defined = function
+ | _, { expr = e } -> is_defined_expr e in
let proof_using_ast = function
| Some (_, ({ expr = VernacProof(_,Some _) } as v)) -> Some v
| _ -> None in