From 42b7e36ddb68f53ada686900e5a98435d9ff7fde Mon Sep 17 00:00:00 2001
From: Arnaud Spiwack
Date: Thu, 25 Jun 2015 18:01:23 +0200
Subject: Add coqide syntax highlighting for `Assume`.
---
ide/coq.lang | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ide/coq.lang b/ide/coq.lang
index c65432bdb7..a31eadc707 100644
--- a/ide/coq.lang
+++ b/ide/coq.lang
@@ -29,12 +29,13 @@
(\%{ident}\.)*\%{ident}
\.(\s|\z)
([-+*]+|{)(\s|\z)|}(\s*})*
+ (?'gal0'Assume)\%{space}\[\%{ident}*\]\%{space}
Definition|Let|Example|SubClass|(Co)?Fixpoint|Function|Conjecture|(Co)?Inductive|Record|Structure|Ltac|Instance|Class|Existing\%{space}Instance|Canonical\%{space}Structure|Coercion
Hypothes[ie]s|Axiom(s)?|Variable(s)?|Parameter(s)?|Context|Implicit\%{space}Type(s)?
((Local|Global)\%{space})?
Theorem|Lemma|Fact|Remark|Corollary|Proposition|Property
Qed|Defined|Admitted|Abort|Save
- ((?'gal'\%{locality}(Program\%{space})?(\%{single_decl}|\%{begin_proof}))\%{space}(?'id'\%{ident}))|((?'gal4list'\%{mult_decl})(?'id_list'(\%{space}\%{ident})*))|(?'gal2'Goal)
+ ((\%{assume})?(?'gal'\%{locality}(Program\%{space})?(\%{single_decl}|\%{begin_proof}))\%{space}(?'id'\%{ident}))|((?'gal4list'\%{mult_decl})(?'id_list'(\%{space}\%{ident})*))|(?'gal2'Goal)
@@ -106,6 +107,7 @@
\%{dot_sep}
+
--
cgit v1.2.3