Function: parseclj-lex-character
parseclj-lex-character is a byte-compiled function defined in
parseclj-lex.el.
Signature
(parseclj-lex-character)
Documentation
Return a lex token representing a character.
Source Code
;; Defined in ~/.emacs.d/elpa/parseclj-20231203.1905/parseclj-lex.el
(defun parseclj-lex-character ()
"Return a lex token representing a character."
(let ((pos (point)))
(right-char)
(cond
((equal (parseclj-lex-lookahead 3) "tab")
(right-char 3)
(parseclj-lex-token :character (buffer-substring-no-properties pos (point)) pos))
((equal (parseclj-lex-lookahead 5) "space")
(right-char 5)
(parseclj-lex-token :character (buffer-substring-no-properties pos (point)) pos))
((equal (parseclj-lex-lookahead 6) "return")
(right-char 6)
(parseclj-lex-token :character (buffer-substring-no-properties pos (point)) pos))
((equal (parseclj-lex-lookahead 7) "newline")
(right-char 7)
(parseclj-lex-token :character (buffer-substring-no-properties pos (point)) pos))
((string-match-p "^u[0-9a-fA-F]\\{4\\}" (parseclj-lex-lookahead 5))
(right-char 5)
(parseclj-lex-token :character (buffer-substring-no-properties pos (point)) pos))
((string-match-p "^o[0-8]\\{3\\}" (parseclj-lex-lookahead 4))
(right-char 4)
(parseclj-lex-token :character (buffer-substring-no-properties pos (point)) pos))
(t
(right-char)
(parseclj-lex-token :character (buffer-substring-no-properties pos (point)) pos)))))