Function: parseclj-lex-map-prefix

parseclj-lex-map-prefix is a byte-compiled function defined in parseclj-lex.el.

Signature

(parseclj-lex-map-prefix)

Documentation

Return a lex token representing a map prefix.

Source Code

;; Defined in ~/.emacs.d/elpa/parseclj-20231203.1905/parseclj-lex.el
(defun parseclj-lex-map-prefix ()
  "Return a lex token representing a map prefix."
  (let ((pos (1- (point))))
    (right-char)
    (when (equal (char-after (point)) ?:)
      (right-char))
    (while (parseclj-lex-symbol-rest-p (char-after (point)))
      (right-char))
    (parseclj-lex-token :map-prefix (buffer-substring-no-properties pos (point)) pos)))