Function: parseclj-lex-error-token

parseclj-lex-error-token is a byte-compiled function defined in parseclj-lex.el.

Signature

(parseclj-lex-error-token POS &optional ERROR-TYPE)

Documentation

Create a lexer error token starting at POS.

ERROR-TYPE is an optional keyword to attach to the created token, as the means for providing more information on the error.

Source Code

;; Defined in ~/.emacs.d/elpa/parseclj-20231203.1905/parseclj-lex.el
(defun parseclj-lex-error-token (pos &optional error-type)
  "Create a lexer error token starting at POS.
ERROR-TYPE is an optional keyword to attach to the created token,
as the means for providing more information on the error."
  (apply #'parseclj-lex-token
         :lex-error
         (buffer-substring-no-properties pos (point))
         pos
         (when error-type
           (list :error-type error-type))))