aboutsummaryrefslogtreecommitdiffhomepage
path: root/ide/coq.lang
diff options
context:
space:
mode:
authorGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2014-09-17 15:27:54 +0200
committerGravatar Guillaume Melquiond <guillaume.melquiond@inria.fr>2014-09-17 16:14:03 +0200
commit24f3c342457119ed2a7936fdaacce30221f07aef (patch)
tree834dfbd47a33e643dac6b8f1b12fe2357d8d0500 /ide/coq.lang
parent723cfceade0408bb88be87451f49d57aa8e38ccf (diff)
Fix broken syntax highlighting for Coq files using "Proof constr".
See Eqdep_dec.v for instance. Module declarations were not highlighted because the IDE wrongly believed they were used inside an unterminated proof.
Diffstat (limited to 'ide/coq.lang')
-rw-r--r--ide/coq.lang11
1 files changed, 10 insertions, 1 deletions
diff --git a/ide/coq.lang b/ide/coq.lang
index 1950b81a3..656041d30 100644
--- a/ide/coq.lang
+++ b/ide/coq.lang
@@ -116,7 +116,7 @@
</include>
</context>
<context id="proof">
- <start>Proof</start>
+ <start>Proof(\%{dot_sep}|\%{space}+(using)|\%{space}+(with))</start>
<end>\%{end_proof}\%{dot_sep}</end>
<include>
<context sub-pattern="0" where="start" style-ref="vernac-keyword"/>
@@ -142,6 +142,15 @@
</context>
</include>
</context>
+ <context id="exact-proof">
+ <start>Proof</start>
+ <end>\%{dot_sep}</end>
+ <include>
+ <context sub-pattern="0" where="start" style-ref="vernac-keyword"/>
+ <context ref="constr-keyword"/>
+ <context ref="constr-sort"/>
+ </include>
+ </context>
<context id="undotted-sep" style-ref="vernac-keyword">
<match>\%{undotted_sep}</match>
</context>