From 5e8b36480ea07e5c98f4e3a4f3b4e6b5822d59ae Mon Sep 17 00:00:00 2001 From: Pierre Courtieu Date: Wed, 22 Sep 2010 15:05:47 +0000 Subject: Fix bug trac 140 by writing a cleaner regexp than (proof-ids ... " "). --- coq/coq-syntax.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coq/coq-syntax.el b/coq/coq-syntax.el index 8b095468..1b469a93 100644 --- a/coq/coq-syntax.el +++ b/coq/coq-syntax.el @@ -877,7 +877,8 @@ Used by `coq-goal-command-p'" (defvar coq-id proof-id) (defvar coq-id-shy "\\(?:\\w\\(?:\\w\\|\\s_\\)*\\)") -(defvar coq-ids (proof-ids coq-id " ")) +; do not use proof-ids with a space separator! +(defvar coq-ids (concat proof-id "\\(" "\\s-+" proof-id "\\)*")) (defun coq-first-abstr-regexp (paren end) (concat paren "\\s-*\\(" coq-ids "\\)\\s-*" end)) -- cgit v1.2.3