Function: verilog-beg-of-statement-1

verilog-beg-of-statement-1 is an interactive and byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-beg-of-statement-1)

Documentation

Move backward to beginning of statement.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-beg-of-statement-1 ()
  "Move backward to beginning of statement."
  (interactive)
  (if (verilog-in-comment-p)
      (verilog-backward-syntactic-ws))
  (let ((pt (point)))
    (catch 'done
      (while (not (looking-at verilog-complete-re))
        (setq pt (point))
        (verilog-backward-syntactic-ws)
        (if (or (bolp)
                (= (preceding-char) ?\;)
                (and (= (preceding-char) ?\{)
                     (save-excursion
                       (backward-char)
                       (verilog-at-struct-p)))
		(progn
		  (verilog-backward-token)
                  (or (looking-at verilog-ends-re)
                      (looking-at "begin"))))
            (progn
              (goto-char pt)
              (throw 'done t)))))
    (verilog-forward-syntactic-ws)))