Function: verilog-inside-comment-or-string-p

verilog-inside-comment-or-string-p is a byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-inside-comment-or-string-p &optional POS)

Documentation

Check if optional point POS is inside a comment.

This may require a slow pre-parse of the buffer with verilog-scan to establish comment properties on all text.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-inside-comment-or-string-p (&optional pos)
  "Check if optional point POS is inside a comment.
This may require a slow pre-parse of the buffer with `verilog-scan'
to establish comment properties on all text."
  ;; This function is very hot
  (verilog-scan)
  (if pos
      (and (>= pos (point-min))
	   (get-text-property pos 'v-cmts))
    (get-text-property (point) 'v-cmts)))