Variable: vhdl--signal-regions-functions

vhdl--signal-regions-functions is a variable defined in vhdl-mode.el.gz.

Value

Large value
(#[257 "\302\301\303#\205�\212\302\300\303#)\207"
      [";\\|\\<\\(then\\|loop\\|report\\|severity\\|is\\)\\>" "[<:]="
       vhdl-re-search-forward t]
      5
      ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
       . 263272)]
 #[257 "\302\301\303#\205�\212\302\300\303#)\207"
      ["\\<then\\>" "^\\s-*if\\>" vhdl-re-search-forward t] 5
      ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
       . 263272)]
 #[257 "\302\301\303#\205�\212\302\300\303#)\207"
      ["\\<then\\>" "\\<elsif\\>" vhdl-re-search-forward t] 5
      ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
       . 263272)]
 #[257 "\302\301\303#\205�\212\302\300\303#)\207"
      ["\\<loop\\>" "^\\s-*while\\>" vhdl-re-search-forward t] 5
      ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
       . 263272)]
 #[257 "\302\301\303#\205�\212\302\300\303#)\207"
      [";" "\\<\\(exit\\|next\\)\\s-+\\w+\\s-+when\\>"
       vhdl-re-search-forward t]
      5
      ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
       . 263272)]
 #[257 "\302\301\303#\205�\212\302\300\303#)\207"
      ["\\(\\<report\\>\\|\\<severity\\>\\|;\\)" "\\<assert\\>"
       vhdl-re-search-forward t]
      5
      ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
       . 263272)]
 #[257 "\302\301\303#\205�\212\302\300\303#)\207"
      ["\\<is\\>" "^\\s-*case\\>" vhdl-re-search-forward t] 5
      ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
       . 263272)]
 #[257
  "\300\301\302#\205�\303u\210\212\304 \210\305\306!\203�\304 \210\202�`)\207"
  [re-search-forward "^\\s-*\\(\\w\\|\\.\\)+[   \n
\f]*(" t -1
		     forward-sexp looking-at "("]
  5
  ("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/progmodes/vhdl-mode.elc"
   . 263272)])

Documentation

Define syntactic regions where signals are read.

Each function is called with one arg (a limit for the (forward) search) and should return either nil or the end position of the region (in which case point will be set to its beginning).

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defconst vhdl--signal-regions-functions
  (list
   ;; right-hand side of signal/variable assignment
   ;; (special case: "<=" is relational operator in a condition)
   (vhdl--re2-region "[<:]="
                     ";\\|\\<\\(then\\|loop\\|report\\|severity\\|is\\)\\>")
   ;; if condition
   (vhdl--re2-region "^\\s-*if\\>" "\\<then\\>")
   ;; elsif condition
   (vhdl--re2-region "\\<elsif\\>" "\\<then\\>")
   ;; while loop condition
   (vhdl--re2-region "^\\s-*while\\>" "\\<loop\\>")
   ;; exit/next condition
   (vhdl--re2-region "\\<\\(exit\\|next\\)\\s-+\\w+\\s-+when\\>" ";")
   ;; assert condition
   (vhdl--re2-region "\\<assert\\>" "\\(\\<report\\>\\|\\<severity\\>\\|;\\)")
   ;; case expression
   (vhdl--re2-region "^\\s-*case\\>" "\\<is\\>")
   ;; parameter list of procedure call, array index
   (lambda (proc-end)
     (when (re-search-forward "^\\s-*\\(\\w\\|\\.\\)+[ \t\n\r\f]*(" proc-end t)
       (forward-char -1)
       (save-excursion
	 (forward-sexp)
	 (while (looking-at "(") (forward-sexp)) (point)))))
  "Define syntactic regions where signals are read.
Each function is called with one arg (a limit for the (forward) search) and
should return either nil or the end position of the region (in which case
point will be set to its beginning).")