Function: opascal-comment-block-start
opascal-comment-block-start is a byte-compiled function defined in
opascal.el.gz.
Signature
(opascal-comment-block-start COMMENT)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/opascal.el.gz
(defun opascal-comment-block-start (comment)
;; Returns the starting comment token of a contiguous // comment block. If
;; the comment is multiline (i.e. {...} or (*...*)), the original comment is
;; returned.
(if (not (eq 'comment-single-line (opascal-token-kind comment)))
comment
;; Scan until we run out of // comments.
(let ((prev-comment comment)
(start-comment comment))
(while (let ((kind (opascal-token-kind prev-comment)))
(cond ((eq kind 'space))
((eq kind 'comment-single-line)
(setq start-comment prev-comment))
(t nil)))
(setq prev-comment (opascal-previous-token prev-comment)))
start-comment)))