Function: vhdl-end-p
vhdl-end-p is a byte-compiled function defined in vhdl-mode.el.gz.
Signature
(vhdl-end-p &optional LIM)
Documentation
Return t if we are looking at a real "end" keyword.
Assumes that the caller will make sure that we are looking at vhdl-end-fwd-re, and are not inside a literal, and that we are not in the middle of an identifier that just happens to contain an "end" keyword.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-end-p (&optional lim)
"Return t if we are looking at a real \"end\" keyword.
Assumes that the caller will make sure that we are looking at
vhdl-end-fwd-re, and are not inside a literal, and that we are not in
the middle of an identifier that just happens to contain an \"end\"
keyword."
(or (not (looking-at "else"))
;; make sure that the "else" isn't inside a conditional signal
;; assignment.
(save-excursion
(re-search-backward ";\\|\\bwhen\\b[^_]" lim 'move)
(or (eq (following-char) ?\;)
(eq (point) lim)
(vhdl-in-literal)))))