Function: verilog-skip-forward-comment-p
verilog-skip-forward-comment-p is a byte-compiled function defined in
verilog-mode.el.gz.
Signature
(verilog-skip-forward-comment-p)
Documentation
If in comment, move to end and return true.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-skip-forward-comment-p ()
"If in comment, move to end and return true."
(let* (h
(state (save-excursion (verilog-syntax-ppss)))
(skip (cond
((nth 3 state) ;Inside string
t)
((nth 7 state) ;Inside // comment
(end-of-line)
(forward-char 1)
t)
((nth 4 state) ;Inside /* comment
(search-forward "*/")
t)
((verilog-in-attribute-p) ;Inside (* attribute
(search-forward "*)" nil t)
t)
(t nil))))
(skip-chars-forward " \t\n\f")
(while
(cond
((looking-at "/\\*")
(progn
(setq h (point))
(goto-char (match-end 0))
(if (search-forward "*/" nil t)
(progn
(skip-chars-forward " \t\n\f")
(setq skip 't))
(progn
(goto-char h)
nil))))
((and (looking-at "(\\*") ; attribute start, but not an event (*) or (* )
(not (looking-at "(\\*\\s-*)")))
(progn
(setq h (point))
(goto-char (match-end 0))
(if (search-forward "*)" nil t)
(progn
(skip-chars-forward " \t\n\f")
(setq skip 't))
(progn
(goto-char h)
nil))))
(t nil)))
skip))