Function: c-get-ml-closer

c-get-ml-closer is a byte-compiled function defined in cc-engine.el.gz.

Signature

(c-get-ml-closer OPEN-DELIM)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-engine.el.gz
(defun c-get-ml-closer (open-delim)
  ;; Return the closer, a three element dotted list of the closer's start, its
  ;; end and the position of the double quote, matching the given multi-line
  ;; string OPENER, also such a three element dotted list.  Otherwise return
  ;; nil.  All pertinent syntax-table text properties must be in place.
  (save-excursion
    (goto-char (cadr open-delim))
    (and (not (equal (c-get-char-property (1- (point)) 'syntax-table)
		     '(15)))
	 (re-search-forward (funcall c-make-ml-string-closer-re-function
				     (buffer-substring-no-properties
				      (car open-delim) (cadr open-delim)))
			    nil t)
	 (cons (match-beginning 1)
	       (cons (match-end 1) (match-beginning 2))))))