Function: verilog-get-completion-decl

verilog-get-completion-decl is a byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-get-completion-decl END)

Documentation

Macro for searching through current declaration (var, type or const) for matches of str and adding the occurrence tp all through point END.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-get-completion-decl (end)
  "Macro for searching through current declaration (var, type or const)
for matches of `str' and adding the occurrence tp `all' through point END."
  (let ((re (verilog-get-declaration-re))
	decl-end match)
    ;; Traverse lines
    (while (and (< (point) end)
		(verilog-re-search-forward re end t))
      ;; Traverse current line
      (setq decl-end (save-excursion (verilog-declaration-end)))
      (while (and (verilog-re-search-forward verilog-identifier-sym-re decl-end t)
		  (not (match-end 1)))
	(setq match (buffer-substring (match-beginning 0) (match-end 0)))
	(if (string-match (concat "\\<" verilog-str) match)
            (setq verilog-all (cons match verilog-all))))
      (forward-line 1)))
  verilog-all)