aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--grammar/tacextend.mlp4
-rw-r--r--parsing/g_vernac.ml410
2 files changed, 7 insertions, 7 deletions
diff --git a/grammar/tacextend.mlp b/grammar/tacextend.mlp
index 2ec6430fd..a1b3f4f25 100644
--- a/grammar/tacextend.mlp
+++ b/grammar/tacextend.mlp
@@ -111,8 +111,8 @@ let declare_tactic loc s c cl = match cl with
declare_str_items loc
[ <:str_item< do {
let obj () = Tacenv.register_ltac True False $name$ $body$ in
- Tacenv.register_ml_tactic $se$ [|$tac$|];
- Mltop.declare_cache_obj obj $plugin_name$; } >>
+ let () = Tacenv.register_ml_tactic $se$ [|$tac$|] in
+ Mltop.declare_cache_obj obj $plugin_name$ } >>
]
| _ ->
(** Otherwise we add parsing and printing rules to generate a call to a
diff --git a/parsing/g_vernac.ml4 b/parsing/g_vernac.ml4
index a4bceeb67..c09693b36 100644
--- a/parsing/g_vernac.ml4
+++ b/parsing/g_vernac.ml4
@@ -211,11 +211,11 @@ GEXTEND Gram
| IDENT "Conjecture" -> (None, Conjectural) ] ]
;
assumptions_token:
- [ [ kwd = IDENT "Hypotheses" -> (kwd, (Some Discharge, Logical))
- | kwd = IDENT "Variables" -> (kwd, (Some Discharge, Definitional))
- | kwd = IDENT "Axioms" -> (kwd, (None, Logical))
- | kwd = IDENT "Parameters" -> (kwd, (None, Definitional))
- | kwd = IDENT "Conjectures" -> (kwd, (None, Conjectural)) ] ]
+ [ [ IDENT "Hypotheses" -> ("Hypotheses", (Some Discharge, Logical))
+ | IDENT "Variables" -> ("Variables", (Some Discharge, Definitional))
+ | IDENT "Axioms" -> ("Axioms", (None, Logical))
+ | IDENT "Parameters" -> ("Parameters", (None, Definitional))
+ | IDENT "Conjectures" -> ("Conjectures", (None, Conjectural)) ] ]
;
inline:
[ [ IDENT "Inline"; "("; i = INT; ")" -> InlineAt (int_of_string i)