Function: ert-font-lock--comment-start-p
ert-font-lock--comment-start-p is a byte-compiled function defined in
ert-font-lock.el.gz.
Signature
(ert-font-lock--comment-start-p)
Documentation
Check if the current point starts a comment.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert-font-lock.el.gz
(defun ert-font-lock--comment-start-p ()
"Check if the current point starts a comment."
(or
;; regexps use syntax tables so let's check that first
(looking-at "\\s<")
;; check newcomment.el facilities
(and comment-start (looking-at (regexp-quote comment-start)))
(and comment-start-skip (looking-at comment-start-skip))
;; sometimes comment syntax is just hardcoded
(and (derived-mode-p '(c-mode c++-mode java-mode))
(looking-at-p "//"))))