Function: verilog-re-search-backward-quick
verilog-re-search-backward-quick is a byte-compiled function defined
in verilog-mode.el.gz.
Signature
(verilog-re-search-backward-quick REGEXP BOUND NOERROR)
Documentation
Like verilog-re-search-backward, including use of REGEXP BOUND and NOERROR,
but trashes match data and is faster for REGEXP that doesn't match often.
This uses verilog-scan and text properties to ignore comments,
so there may be a large up front penalty for the first search.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defsubst verilog-re-search-backward-quick (regexp bound noerror)
;; checkdoc-params: (REGEXP BOUND NOERROR)
"Like `verilog-re-search-backward', including use of REGEXP BOUND and NOERROR,
but trashes match data and is faster for REGEXP that doesn't match often.
This uses `verilog-scan' and text properties to ignore comments,
so there may be a large up front penalty for the first search."
(let (pt)
(while (and (not pt)
(re-search-backward regexp bound noerror))
(if (verilog-inside-comment-or-string-p (match-beginning 0))
(re-search-backward "[/\"]" nil t) ; Only way a comment or quote can begin
(setq pt (match-beginning 0))))
pt))