Function: verilog-in-attribute-p

verilog-in-attribute-p is a byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-in-attribute-p)

Documentation

Return true if point is in an attribute (* [] attribute *).

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
    (or (nth 3 state) (nth 4 state) (nth 7 state)))) ; Inside string or comment)

(defun verilog-in-attribute-p ()
  "Return true if point is in an attribute (* [] attribute *)."
  (save-match-data
    (save-excursion
      (verilog-re-search-backward "\\((\\*\\)\\|\\(\\*)\\)" nil 'move)
      (cond
       ((match-end 1)
        (progn (goto-char (match-end 1))
               (not (looking-at "\\s-*)")))
        nil)
       ((match-end 2)
        (progn (goto-char (match-beginning 2))
               (not (looking-at "(\\s-*")))
        nil)
       (t nil)))))