Function: c-forward-c++-module-partition-name
c-forward-c++-module-partition-name is a byte-compiled function
defined in cc-fonts.el.gz.
Signature
(c-forward-c++-module-partition-name LIMIT)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-fonts.el.gz
(defun c-forward-c++-module-partition-name (limit)
;; Is there a C++20 module partition name (starting with its colon) at
;; point? If so return a cons of the start and end of the name, not
;; including the colon, in which case point will be move to after the name
;; and following whitespace. Otherwise nil will be returned and point not
;; moved. The entire construct must end not after LIMIT.
(when (and
(eq (char-after) ?:)
(progn
(forward-char)
(c-forward-syntactic-ws limit)
(looking-at c-module-name-re))
(<= (match-end 0) limit)
(not (looking-at c-keywords-regexp)))
(goto-char (match-end 0))
(prog1 (cons (match-beginning 0) (match-end 0))
(c-forward-syntactic-ws limit))))