Function: verilog-forward-ws&directives
verilog-forward-ws&directives is a byte-compiled function defined in
verilog-mode.el.gz.
Signature
(verilog-forward-ws&directives &optional BOUND)
Documentation
Forward skip over syntactic whitespace and compiler directives for Emacs 19.
Optional BOUND limits search.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-forward-ws&directives (&optional bound)
"Forward skip over syntactic whitespace and compiler directives for Emacs 19.
Optional BOUND limits search."
(save-restriction
(let* ((bound (or bound (point-max)))
(here bound)
jump)
(if (> bound (point))
(progn
(let ((state (save-excursion (verilog-syntax-ppss))))
(cond
((nth 7 state) ; in // comment
(end-of-line)
(forward-char 1)
(skip-chars-forward " \t\n\f")
)
((nth 4 state) ; in /* */ comment
(verilog-re-search-forward "\\*/\\s-*" nil 'move))))
(narrow-to-region (point) bound)
(while (/= here (point))
(setq here (point)
jump nil)
(forward-comment (buffer-size))
(and (looking-at "\\s-*(\\*.*\\*)\\s-*") ; Attribute
(goto-char (match-end 0)))
(save-excursion
(beginning-of-line)
(if (looking-at verilog-directive-re-1)
(setq jump t)))
(if jump
(beginning-of-line 2))))))))