Function: ruby-here-doc-end-match

ruby-here-doc-end-match is a byte-compiled function defined in ruby-mode.el.gz.

Signature

(ruby-here-doc-end-match)

Documentation

Return a regexp to find the end of a heredoc.

This should only be called after matching against ruby-here-doc-beg-re.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defun ruby-here-doc-end-match ()
  "Return a regexp to find the end of a heredoc.

This should only be called after matching against `ruby-here-doc-beg-re'."
  (concat "^"
          (if (match-string 2) "[ \t]*" nil)
          (regexp-quote
           (or (match-string 4)
               (match-string 5)
               (match-string 6)))))