Mercurial > emacs
comparison lisp/progmodes/verilog-mode.el @ 92692:d999f30304bc
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1095
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 10 Mar 2008 00:49:47 +0000 |
parents | f991f10f15ec e36e32d01703 |
children | f35f15ba549f |
comparison
equal
deleted
inserted
replaced
92691:0574109ed8bc | 92692:d999f30304bc |
---|---|
113 ;; (This section is required to appease checkdoc.) | 113 ;; (This section is required to appease checkdoc.) |
114 | 114 |
115 ;;; Code: | 115 ;;; Code: |
116 | 116 |
117 ;; This variable will always hold the version number of the mode | 117 ;; This variable will always hold the version number of the mode |
118 (defconst verilog-mode-version "399" | 118 (defconst verilog-mode-version "404" |
119 "Version of this Verilog mode.") | 119 "Version of this Verilog mode.") |
120 (defconst verilog-mode-release-date "2008-02-19-GNU" | 120 (defconst verilog-mode-release-date "2008-03-02-GNU" |
121 "Release date of this Verilog mode.") | 121 "Release date of this Verilog mode.") |
122 (defconst verilog-mode-release-emacs t | 122 (defconst verilog-mode-release-emacs t |
123 "If non-nil, this version of Verilog mode was released with Emacs itself.") | 123 "If non-nil, this version of Verilog mode was released with Emacs itself.") |
124 | 124 |
125 (defun verilog-version () | 125 (defun verilog-version () |
274 This function may be removed when Emacs 21 is no longer supported." | 274 This function may be removed when Emacs 21 is no longer supported." |
275 (or (equal value t) (equal value nil))) | 275 (or (equal value t) (equal value nil))) |
276 | 276 |
277 (defgroup verilog-mode nil | 277 (defgroup verilog-mode nil |
278 "Facilitates easy editing of Verilog source text." | 278 "Facilitates easy editing of Verilog source text." |
279 :version "22.2" | |
279 :group 'languages) | 280 :group 'languages) |
280 | 281 |
281 ; (defgroup verilog-mode-fonts nil | 282 ; (defgroup verilog-mode-fonts nil |
282 ; "Facilitates easy customization fonts used in Verilog source text" | 283 ; "Facilitates easy customization fonts used in Verilog source text" |
283 ; :link '(customize-apropos "font-lock-*" 'faces) | 284 ; :link '(customize-apropos "font-lock-*" 'faces) |
527 IEEE-1800 standard. Note that changing this will require restarting Emacs | 528 IEEE-1800 standard. Note that changing this will require restarting Emacs |
528 to see the effect as font color choices are cached by Emacs." | 529 to see the effect as font color choices are cached by Emacs." |
529 :group 'verilog-mode-indent | 530 :group 'verilog-mode-indent |
530 :type 'boolean) | 531 :type 'boolean) |
531 (put 'verilog-highlight-p1800-keywords 'safe-local-variable 'verilog-booleanp) | 532 (put 'verilog-highlight-p1800-keywords 'safe-local-variable 'verilog-booleanp) |
533 | |
534 (defcustom verilog-highlight-grouping-keywords nil | |
535 "*True means highlight grouping keywords 'begin' and 'end' more dramatically. | |
536 If false, these words are in the font-lock-type-face; if True then they are in | |
537 `verilog-font-lock-ams-face'. Some find that special highlighting on these | |
538 grouping constructs allow the structure of the code to be understood at a glance." | |
539 :group 'verilog-mode-indent | |
540 :type 'boolean) | |
541 (put 'verilog-highlight-grouping-keywords 'safe-local-variable 'verilog-booleanp) | |
532 | 542 |
533 (defcustom verilog-auto-endcomments t | 543 (defcustom verilog-auto-endcomments t |
534 "*True means insert a comment /* ... */ after 'end's. | 544 "*True means insert a comment /* ... */ after 'end's. |
535 The name of the function or case will be set between the braces." | 545 The name of the function or case will be set between the braces." |
536 :group 'verilog-mode-actions | 546 :group 'verilog-mode-actions |
1896 (setq verilog-font-lock-keywords | 1906 (setq verilog-font-lock-keywords |
1897 (list | 1907 (list |
1898 ;; Fontify all builtin keywords | 1908 ;; Fontify all builtin keywords |
1899 (concat "\\<\\(" verilog-font-keywords "\\|" | 1909 (concat "\\<\\(" verilog-font-keywords "\\|" |
1900 ;; And user/system tasks and functions | 1910 ;; And user/system tasks and functions |
1901 "\\$[a-zA-Z][a-zA-Z0-9_\\$]*" | 1911 "\\$[a-zA-Z][a-zA-Z0-9_\\$]*" |
1902 "\\)\\>") | 1912 "\\)\\>") |
1903 ;; Fontify all types | 1913 ;; Fontify all types |
1904 (cons (concat "\\(\\<" verilog-font-grouping-keywords "\\)\\>") | 1914 (if verilog-highlight-grouping-keywords |
1905 'verilog-font-lock-ams-face) | 1915 (cons (concat "\\<\\(" verilog-font-grouping-keywords "\\)\\>") |
1906 (cons (concat "\\<\\(" verilog-type-font-keywords "\\)\\>") | 1916 'verilog-font-lock-ams-face) |
1907 'font-lock-type-face) | 1917 (cons (concat "\\<\\(" verilog-font-grouping-keywords "\\)\\>") |
1918 'font-lock-type-face)) | |
1919 (cons (concat "\\<\\(" verilog-type-font-keywords "\\)\\>") | |
1920 'font-lock-type-face) | |
1908 ;; Fontify IEEE-P1800 keywords appropriately | 1921 ;; Fontify IEEE-P1800 keywords appropriately |
1909 (if verilog-highlight-p1800-keywords | 1922 (if verilog-highlight-p1800-keywords |
1910 (cons (concat "\\<\\(" verilog-p1800-keywords "\\)\\>") | 1923 (cons (concat "\\<\\(" verilog-p1800-keywords "\\)\\>") |
1911 'verilog-font-lock-p1800-face) | 1924 'verilog-font-lock-p1800-face) |
1912 (cons (concat "\\<\\(" verilog-p1800-keywords "\\)\\>") | 1925 (cons (concat "\\<\\(" verilog-p1800-keywords "\\)\\>") |