aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2000-09-29 17:25:26 +0000
committerDavid Aspinall2000-09-29 17:25:26 +0000
commit2e1e2b225536abe66695232f2c7e9d02c5156c9c (patch)
tree39da6ef7d5d7d8bc921820c4cd7075b5e1a95d32
parent615374cd94183bc1f3378928b6f2f17b522a51be (diff)
Parse comments also in proof-script-generic-parse-sexp
-rw-r--r--generic/proof-script.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index 6d17f002..fe6c07ac 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -1350,15 +1350,14 @@ to the function which parses the script segment by segment."
(defun proof-script-generic-parse-sexp ()
"Used for proof-script-parse-function if proof-script-sexp-commands is set."
- (skip-chars-forward " \t\n")
- (let* ((parse-sexp-ignore-comments t) ; gobble comments into commands
- (end (scan-sexps (point) 1)))
- (if end
- (progn
- (goto-char end)
- (list 'cmd))
- ;; Didn't find command end
- (list nil))))
+ ;; Usual treatment of comments
+ (if (looking-at proof-comment-start-regexp)
+ ;; Find end of comment
+ (if (proof-script-generic-parse-find-comment-end) 'comment)
+ (let* ((parse-sexp-ignore-comments t) ; gobble comments into commands
+ (end (scan-sexps (point) 1)))
+ (if end
+ (progn (goto-char end) 'cmd)))))
;; NEW parsing functions for 3.2