comint-word
comint-word is a compiled Lisp function in `comint.el
'.
(comint-word WORD-CHARS)
Return the word of WORD-CHARS at point, or nil if none is found.
Word constituents are considered to be those in WORD-CHARS, which is like the
inside of a "[...]" (see `skip-chars-forward'), plus all non-ASCII characters.