Function: verilog-re-search-forward
verilog-re-search-forward is a byte-compiled function defined in
verilog-mode.el.gz.
Signature
(verilog-re-search-forward REGEXP BOUND NOERROR)
Documentation
Like re-search-forward, but skips over match in comments or strings.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defsubst verilog-re-search-forward (REGEXP BOUND NOERROR)
;; checkdoc-params: (REGEXP BOUND NOERROR)
"Like `re-search-forward', but skips over match in comments or strings."
(let ((mdata '(nil nil))) ; So match-end will return nil if no matches found
(while (and
(re-search-forward REGEXP BOUND NOERROR)
(setq mdata (match-data))
(and (verilog-skip-forward-comment-or-string)
(progn
(setq mdata '(nil nil))
(if BOUND
(< (point) BOUND)
t)))))
(store-match-data mdata)
(match-end 0)))