diff options
| author | David Aspinall | 2009-08-17 09:35:16 +0000 |
|---|---|---|
| committer | David Aspinall | 2009-08-17 09:35:16 +0000 |
| commit | 2cad83b7b2ab94cbf7c7d234f7699d634ebf660b (patch) | |
| tree | ab06743147df40a9b67c6497740f341bfa73cafa | |
| parent | 04c792a2ee92892304baa6d13534ca3d68cc9175 (diff) | |
Minor changes from Stefan Monnier's patch
| -rw-r--r-- | coq/coq-syntax.el | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/coq/coq-syntax.el b/coq/coq-syntax.el index 5d5d6883..2b2545da 100644 --- a/coq/coq-syntax.el +++ b/coq/coq-syntax.el @@ -68,8 +68,7 @@ (coq-version-is-V8 (setq coq-version-is-V8-0 nil coq-version-is-V8-1 t) (message v80)) (t;; otherwise do coqtop -v and see which version we have - (let* ((default-directory (expand-file-name "~/")) - (str (shell-command-to-string (concat coq-prog-name " -v"))) + (let* ((str (shell-command-to-string (concat "cd ~; " coq-prog-name " -v"))) ;; this match sets match-string below (ver (string-match "version v?\\([.0-9]*\\)" str))) (message str) @@ -911,7 +910,7 @@ Used by `coq-goal-command-p'" (defvar coq-ids (proof-ids coq-id " ")) (defun coq-first-abstr-regexp (paren end) - (concat paren "\\s-*\\(" coq-ids "\\)\\s-*" end)) + (concat paren "\\s-*\\(" coq-ids "\\)\\s-*" end)) (defcustom coq-variable-highlight-enable t "Activates partial bound variable highlighting" @@ -983,9 +982,9 @@ Used by `coq-goal-command-p'" ;; (concat "\\(with\\)\\s-+\\(" coq-id "\\)\\s-*\\([^(.]*:\\|.*)[^(.]*:=\\)")) ;;"\\<Prop\\>\\|\\<Set\\>\\|\\<Type\\>" (defvar coq-font-lock-keywords-1 - (append - coq-font-lock-terms - (list + (append + coq-font-lock-terms + (list (cons (proof-ids-to-regexp coq-solve-tactics) 'coq-solve-tactics-face) (cons (proof-ids-to-regexp coq-keywords) 'font-lock-keyword-face) (cons (proof-ids-to-regexp coq-reserved) 'font-lock-type-face) @@ -1000,8 +999,9 @@ Used by `coq-goal-command-p'" (list 1 'font-lock-function-name-face t)) (list coq-goal-with-hole-regexp 2 'font-lock-function-name-face)) - (if coq-variable-highlight-enable (list (list coq-decl-with-hole-regexp 2 'font-lock-variable-name-face))) - (list + (if coq-variable-highlight-enable + (list (list coq-decl-with-hole-regexp 2 'font-lock-variable-name-face))) + (list (list coq-defn-with-hole-regexp 2 'font-lock-function-name-face) (list coq-with-with-hole-regexp 2 'font-lock-function-name-face) (list coq-save-with-hole-regexp 2 'font-lock-function-name-face) @@ -1046,10 +1046,9 @@ Used by `coq-goal-command-p'" 1)) (append coq-keywords-decl coq-keywords-defn coq-keywords-goal))) - -;; Local Variables: *** -;; indent-tabs-mode: nil *** -;; End: *** - (provide 'coq-syntax) -;;; coq-syntax.el ends here + ;;; coq-syntax.el ends here + +; Local Variables: *** +; indent-tabs-mode: nil *** +; End: *** |
