Function: vhdl-corresponding-defun

vhdl-corresponding-defun is a byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-corresponding-defun)

Documentation

If the word at the current position corresponds to a "defun" keyword, then return a string that can be used to find the corresponding "begin" keyword, else return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-corresponding-defun ()
  "If the word at the current position corresponds to a \"defun\"
keyword, then return a string that can be used to find the
corresponding \"begin\" keyword, else return nil."
  (save-excursion
    (and (looking-at vhdl-defun-re)
	 (vhdl-defun-p)
	 (if (looking-at "block\\|process\\|procedural")
	     ;; "block", "process". "procedural:
	     (buffer-substring (match-beginning 0) (match-end 0))
	   ;; "architecture", "configuration", "context", "entity", "package",
	   ;; "procedure", "function":
	   "is"))))