Function: sh-mkword-regexpr

sh-mkword-regexpr is a byte-compiled function defined in sh-script.el.gz.

Signature

(sh-mkword-regexpr WORD)

Documentation

Make a regexp which matches WORD as a word.

This specifically excludes an occurrence of WORD followed by punctuation characters like -.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
;; Internal use - not designed to be changed by the user:

(defun sh-mkword-regexpr (word)
  "Make a regexp which matches WORD as a word.
This specifically excludes an occurrence of WORD followed by
punctuation characters like `-'."
  (concat word "\\([^-[:alnum:]_]\\|$\\)"))