aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/coq-indent.el
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2006-09-08 08:34:46 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2006-09-08 08:34:46 +0000
commit2fb137dc539ac966f571e7e065ff4fab7f8b33b4 (patch)
tree45ead2765d3028f18cf3c576708e64dae81944e8 /coq/coq-indent.el
parente68b54486c6f010a13a6de11e2ff3e0858f40a59 (diff)
Fixed nested comment support for scripting, in xemacs (worked already
on GNU Emacs). Instanciated proof-parse-function for that...
Diffstat (limited to 'coq/coq-indent.el')
-rw-r--r--coq/coq-indent.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/coq/coq-indent.el b/coq/coq-indent.el
index 34021c57..4e0e3bd2 100644
--- a/coq/coq-indent.el
+++ b/coq/coq-indent.el
@@ -223,6 +223,16 @@ far as possible and return nil."
(if (< direction 0) (coq-find-command-end-backward)
(coq-find-command-end-forward)))
+;; This one to deal with nested comments in xemacs
+(defun coq-parse-function ()
+ (skip-chars-forward " \n\t")
+ (forward-char 1)
+ (if (coq-find-comment-end)
+ 'comment
+ (when (coq-find-command-end-forward)
+ (forward-char 1)
+ 'cmd)))
+
(defun coq-find-current-start ()
"Move to the start of command at point.
The point is put exactly after the end of previous command, or at the (point-min if