diff options
author | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2014-09-17 15:27:54 +0200 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2014-09-17 16:14:03 +0200 |
commit | 24f3c342457119ed2a7936fdaacce30221f07aef (patch) | |
tree | 834dfbd47a33e643dac6b8f1b12fe2357d8d0500 /ide/coq.lang | |
parent | 723cfceade0408bb88be87451f49d57aa8e38ccf (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.lang | 11 |
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> |