Function: vhdl-font-lock-match-item
vhdl-font-lock-match-item is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-font-lock-match-item LIMIT)
Documentation
Match, and move over, any declaration item after point.
Adapted from
font-lock-match-c-style-declaration-item-and-skip-to-next.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-font-lock-match-item (limit)
"Match, and move over, any declaration item after point.
Adapted from
`font-lock-match-c-style-declaration-item-and-skip-to-next'."
(condition-case nil
(save-restriction
(narrow-to-region (point-min) limit)
;; match item
(when (looking-at "\\s-*\\([a-zA-Z]\\w*\\)")
(save-match-data
(goto-char (match-end 1))
;; move to next item
(if (looking-at "\\(\\s-*,\\)")
(goto-char (match-end 1))
(end-of-line) t))))
(error t)))