Function: comint-word

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.

(fn WORD-CHARS)