diff options
| author | David Aspinall | 2004-04-06 16:25:57 +0000 |
|---|---|---|
| committer | David Aspinall | 2004-04-06 16:25:57 +0000 |
| commit | 2fa9fcd55de6357db6fa521291d253432a298ec8 (patch) | |
| tree | e267fb53d654f44f52a602cfa683d88900d45a82 /generic/proof-script.el | |
| parent | d985cda3b7142b09b84e9daad67c8d2f82e59495 (diff) | |
Adjust proof-script-comment-end and comment-end to hold empty string for end-of-line terminated comments.
Diffstat (limited to 'generic/proof-script.el')
| -rw-r--r-- | generic/proof-script.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el index 0d14f43f..970a7407 100644 --- a/generic/proof-script.el +++ b/generic/proof-script.el @@ -1326,11 +1326,14 @@ With ARG, turn on scripting iff ARG is positive." "A subroutine of `proof-done-advancing'." ;; Add an element for a new span, which should span ;; the text of the comment. - ;; FIXME: might be better to use regexps for matching - ;; start/end of comments, rather than comment-start-skip + ;; FIXME: might be better to use regexps/skip spaces for matching + ;; start/end of comments, rather than comment-start and + ;; comment-end skip (which assumes comments are nicely formatted). + ;; (let ((bodyspan (make-span (+ (length comment-start) (span-start span)) - (- (span-end span) (length comment-end)))) + (- (span-end span) + (max 1 (length comment-end))))) (id (proof-next-element-id 'comment))) (pg-add-element "comment" id bodyspan) (set-span-property span 'id (intern id)) |
