aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/coq-smie.el
diff options
context:
space:
mode:
authorGravatar Tej Chajed <tchajed@mit.edu>2018-08-17 11:50:57 -0400
committerGravatar Tej Chajed <tchajed@mit.edu>2018-08-17 11:50:57 -0400
commit5c27e4a9398cb366e087594dd1c72e4c084fae01 (patch)
treecf24865ec0299070cf7d24af6a81cec9e0df98a7 /coq/coq-smie.el
parentb7f17b7ca09276be5cd29263bd5574fdd6fa4d2c (diff)
Support the Variant vernacular
Syntactically looks much like an Inductive, though it is non-recursive so "where" (mutual recursion) is not supported.
Diffstat (limited to 'coq/coq-smie.el')
-rw-r--r--coq/coq-smie.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/coq/coq-smie.el b/coq/coq-smie.el
index 2b5e59e9..59d84e36 100644
--- a/coq/coq-smie.el
+++ b/coq/coq-smie.el
@@ -505,7 +505,7 @@ The point should be at the beginning of the command name."
":= with"
(goto-char p)
":= module")))
- ((member corresp '("Inductive" "CoInductive")) ":= inductive")
+ ((member corresp '("Inductive" "CoInductive" "Variant")) ":= inductive")
((equal corresp "let") ":= let")
((equal corresp "where") ":= inductive") ;; inductive or fixpoint, nevermind
((or (looking-back "{" nil)) ":= record")