aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Courtieu2004-03-10 18:54:34 +0000
committerPierre Courtieu2004-03-10 18:54:34 +0000
commit41c4820a778903785d2009820a06787d273152e4 (patch)
tree50fefbcb5c3bad5b38760cefca04aeee732d3496
parent4221aa359e8e32738d502515e1f63be58dc702d5 (diff)
fixed coq command-end expression-regexp to deal with the token '..'
-rw-r--r--coq/coq.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index c79f719c..62e23bed 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -725,8 +725,10 @@ This is specific to coq-mode."
(defun coq-mode-config ()
(setq proof-terminal-char ?\.)
- (setq proof-script-command-end-regexp
- (if coq-version-is-V7 "[.]+\\([\\. \t\n\r]\\|\\'\\)" "[.]"))
+ (setq proof-script-command-end-regexp ;"\\(\\w\\|\\s-\\|\\(\\.\\.\\)+\\)\\.[^\\w\\.]"
+ (if coq-version-is-V7
+ "\\(?:\\w\\|\\s-\\|\\(?:\\.\\.\\)+\\)\\.\\(\\s-\\|\\'\\)"
+ "[.]"))
(setq proof-script-comment-start "(*")
(setq proof-script-comment-end "*)")
(setq proof-unnamed-theorem-name "Unnamed_thm") ; Coq's default name