Variable: vhdl-actual-generic-name
vhdl-actual-generic-name is a customizable variable defined in
vhdl-mode.el.gz.
Value
(".*" . "\\&")
Documentation
Specifies how actual generic names are obtained from formal generic names.
In a component instantiation, an actual generic name can be obtained by modifying the formal generic name (e.g. attaching or stripping off a substring).
FROM REGEXP is a regular expression matching the original name:
".*" matches the entire string
"\\(...\\)" matches a substring
TO STRING specifies the string to be inserted as new name:
"\\&" means substitute entire matched text
"\\N" means substitute what matched the Nth "\\(...\\)"
Examples:
".*" "\\&" inserts original string
".*" "\\&_i" attaches "_i" to original string
"\\(.*\\)_[io]$" "\\1" strips off "_i" or "_o" from original string
".*" "foo" inserts constant string "foo"
".*" "" inserts empty string
This variable was added, or its default value changed, in Emacs 24.4.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defcustom vhdl-actual-generic-name '(".*" . "\\&")
(concat
"Specifies how actual generic names are obtained from formal generic names.
In a component instantiation, an actual generic name can be
obtained by modifying the formal generic name (e.g. attaching or stripping
off a substring)."
vhdl-name-doc-string)
:type '(cons (regexp :tag "From regexp")
(string :tag "To string "))
:group 'vhdl-port
:version "24.4")