Function: vhdl-parse-string

vhdl-parse-string is a byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-parse-string STRING &optional OPTIONAL)

Documentation

Check that the text following point matches the regexp in STRING.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
;; structure: (parenthesized expression means list of such entries)
;; (ent-name
;;  ((generic-names) generic-type generic-init generic-comment group-comment)
;;  ((port-names) port-object port-direct port-type port-comment group-comment)
;;  (lib-name pack-key))

(defun vhdl-parse-string (string &optional optional)
  "Check that the text following point matches the regexp in STRING."
  (if (looking-at string)
      (progn (goto-char (match-end 0))
	     (when (vhdl-in-literal)
	       (end-of-line))
	     (point))
    (unless optional
      (throw 'parse (format "ERROR:  Syntax error near line %s, expecting \"%s\""
			    (vhdl-current-line) string)))
    nil))