Function: lua-get-token-match-re

lua-get-token-match-re is a byte-compiled function defined in lua-mode.el.gz.

Signature

(lua-get-token-match-re TOKEN-INFO DIRECTION)

Documentation

Return the relevant match regexp from TOKEN-INFO.

The argument DIRECTION controls if the search goes forward or backward.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defun lua-get-token-match-re (token-info direction)
  "Return the relevant match regexp from TOKEN-INFO.

The argument DIRECTION controls if the search goes forward or backward."
  (cond
   ((eq direction 'forward) (cadr token-info))
   ((eq direction 'backward) (nth 2 token-info))
   (t nil)))