Function: verilog-looking-at-decl-to-align

verilog-looking-at-decl-to-align is a byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-looking-at-decl-to-align)

Documentation

Return non-nil if pointing at a Verilog variable declaration that must be aligned.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-looking-at-decl-to-align ()
  "Return non-nil if pointing at a Verilog variable declaration that must be aligned."
  (let* ((re (verilog-get-declaration-re))
         (valid-re (looking-at re))
         (id-pos (match-end 0)))
    (and valid-re
         (not (verilog-at-struct-decl-p))
         (not (verilog-at-enum-decl-p))
         (save-excursion
           (goto-char id-pos)
           (verilog-forward-syntactic-ws)
           (and (not (looking-at ";"))
                (not (member (thing-at-point 'symbol) verilog-keywords))
                (progn ; Avoid alignment of instances whose name match user defined types
                  (forward-word)
                  (verilog-forward-syntactic-ws)
                  (not (looking-at "("))))))))