aboutsummaryrefslogtreecommitdiff
path: root/plugins/ltac
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-11-20 13:20:18 +0100
committerPierre-Marie Pédrot2020-11-20 13:20:18 +0100
commit04186f83545e3c693976c73d488b36dd4a2b50db (patch)
tree7f22af1415d31b515f8ea4ed42e356279d2756f6 /plugins/ltac
parent1fd6af1ae6d4a46547cdd2bf812ef46e0727138f (diff)
parent6adbb8b2c055820777721eae9a3409f9067a8d0e (diff)
Merge PR #13237: Address #13235: avoid passing degenerate in-hyps clauses
Reviewed-by: jfehrle Reviewed-by: ppedrot
Diffstat (limited to 'plugins/ltac')
-rw-r--r--plugins/ltac/g_tactic.mlg6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/ltac/g_tactic.mlg b/plugins/ltac/g_tactic.mlg
index dbacacab4a..072206c39c 100644
--- a/plugins/ltac/g_tactic.mlg
+++ b/plugins/ltac/g_tactic.mlg
@@ -377,9 +377,11 @@ GRAMMAR EXTEND Gram
{ {onhyps=None; concl_occs=occs} }
| "*"; "|-"; occs=concl_occ ->
{ {onhyps=None; concl_occs=occs} }
- | hl=LIST0 hypident_occ SEP","; "|-"; occs=concl_occ ->
+ | "|-"; occs=concl_occ ->
+ { {onhyps=Some []; concl_occs=occs} }
+ | hl = LIST1 hypident_occ SEP ","; "|-"; occs=concl_occ ->
{ {onhyps=Some hl; concl_occs=occs} }
- | hl=LIST0 hypident_occ SEP"," ->
+ | hl = LIST1 hypident_occ SEP "," ->
{ {onhyps=Some hl; concl_occs=NoOccurrences} } ] ]
;
clause_dft_concl: