Function: viper-looking-at-alpha
viper-looking-at-alpha is a byte-compiled function defined in
viper-util.el.gz.
Signature
(viper-looking-at-alpha &optional ADDL-CHARS)
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-util.el.gz
;; addl-chars are characters to be temporarily considered as alphanumerical
(defun viper-looking-at-alpha (&optional addl-chars)
(or (stringp addl-chars) (setq addl-chars ""))
(if (eq viper-syntax-preference 'reformed-vi)
(setq addl-chars (concat addl-chars "_")))
(let ((char (char-after (point))))
(if char
(if (eq viper-syntax-preference 'strict-vi)
(looking-at (concat "[" viper-strict-ALPHA-chars addl-chars "]"))
(or
;; or one of the additional chars being asked to include
(viper-memq-char char (viper-string-to-list addl-chars))
(and
;; not one of the excluded word chars (note:
;; viper-non-word-characters is a list)
(not (viper-memq-char char viper-non-word-characters))
;; char of the Viper-word syntax class
(viper-memq-char (char-syntax char)
(viper-string-to-list viper-ALPHA-char-class))))))
))