Function: vhdl-get-end-of-unit
vhdl-get-end-of-unit is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-get-end-of-unit)
Documentation
Return position of end of current unit.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-get-end-of-unit ()
"Return position of end of current unit."
(let ((pos (point)))
(save-excursion
(while (and (re-search-forward "^[ \t]*\\(architecture\\|configuration\\|context\\|entity\\|package\\)\\>" nil 1)
(save-excursion
(goto-char (match-beginning 0))
(vhdl-backward-syntactic-ws)
(and (/= (preceding-char) ?\;) (not (bobp))))))
(re-search-backward "^[ \t]*end\\>" pos 1)
(point))))