Function: evil-looking-at-end-comment
evil-looking-at-end-comment is a byte-compiled function defined in
evil-common.el.
Signature
(evil-looking-at-end-comment &optional MOVE)
Documentation
Return t if point is at the end of a comment.
Point must be on one of the opening characters of a block comment according to the current syntax table. Futhermore, these characters must been parsed as opening characters, i.e. they won't be considered as comment starters inside a string or possibly another comment. Point is moved right after the comment closer if MOVE is non-nil.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-looking-at-end-comment (&optional move)
"Return t if point is at the end of a comment.
Point must be on one of the opening characters of a block comment
according to the current syntax table. Futhermore, these
characters must been parsed as opening characters, i.e. they
won't be considered as comment starters inside a string or
possibly another comment. Point is moved right after the comment
closer if MOVE is non-nil."
(cond
;; one char closer
((= (char-syntax (char-after)) ?>)
(and (evil-in-comment-p) ; in comment
(not (evil-in-comment-p (1+ (point))))
(prog1 t (when move (forward-char)))))
;; two char closer on first char
((and (not (zerop (logand (car (syntax-after (point)))
(ash 1 18))))
(not (zerop (logand (or (car (syntax-after (1+ (point)))) 0)
(ash 1 19)))))
(and (evil-in-comment-p)
(not (evil-in-comment-p (+ (point) 2)))
(prog1 t (when move (forward-char 2)))))
;; two char closer on second char
((and (not (zerop (logand (car (syntax-after (point)))
(ash 1 19))))
(not (zerop (logand (or (car (syntax-after (1- (point)))) 0)
(ash 1 18)))))
(and (evil-in-comment-p)
(not (evil-in-comment-p (1+ (point))))
(prog1 t (when move (forward-char)))))))