Function: parseclj-lex-symbol-start-p
parseclj-lex-symbol-start-p is a byte-compiled function defined in
parseclj-lex.el.
Signature
(parseclj-lex-symbol-start-p CHAR &optional ALPHA-ONLY)
Documentation
Return t if CHAR is a valid start for a symbol.
Symbols begin with a non-numeric character and can contain alphanumeric characters and . * + ! - _ ? $ % & = < > '. If - + or . are the first character, the second character (if any) must be non-numeric.
In some cases, like in tagged elements, symbols are required to start with alphabetic characters only. ALPHA-ONLY ensures this behavior.
Source Code
;; Defined in ~/.emacs.d/elpa/parseclj-20231203.1905/parseclj-lex.el
(defun parseclj-lex-symbol-start-p (char &optional alpha-only)
"Return t if CHAR is a valid start for a symbol.
Symbols begin with a non-numeric character and can contain alphanumeric
characters and . * + ! - _ ? $ % & = < > '. If - + or . are the first
character, the second character (if any) must be non-numeric.
In some cases, like in tagged elements, symbols are required to start with
alphabetic characters only. ALPHA-ONLY ensures this behavior."
(not (not (and char
(or (and (<= ?a char) (<= char ?z))
(and (<= ?A char) (<= char ?Z))
(and (not alpha-only) (member char parseclj-lex-symbol-special-chars)))))))