aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-03-03 08:52:49 +0000
committerDan Nicolaescu2008-03-03 08:52:49 +0000
commita1ebd734f1f674fe843b5ae65909f51efb6fddcc (patch)
tree69530736ef16a5ec25d1421e65613cb3e24e18ec
parentcdd0d016ad69dc590063ee08b2857dbb8accd18e (diff)
downloademacs-a1ebd734f1f674fe843b5ae65909f51efb6fddcc.tar.gz
emacs-a1ebd734f1f674fe843b5ae65909f51efb6fddcc.zip
* verilog-mode.el (verilog-font-grouping-keywords): Fix bug in the
grouping-keyword regular expression. (verilog-font-lock-keywords): Allow users to toggle special highlight of grouping-keywords. (verilog-highlight-grouping-keywords): The toggle for special highlighting of grouping keywords.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/progmodes/verilog-mode.el32
2 files changed, 31 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 76a30b75224..22862b3e8bf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12008-03-03 Michael McNamara <mac@mail.brushroad.com>
2
3 * verilog-mode.el (verilog-font-grouping-keywords): Fix bug in the
4 grouping-keyword regular expression.
5 (verilog-font-lock-keywords): Allow users to toggle special
6 highlight of grouping-keywords.
7 (verilog-highlight-grouping-keywords): The toggle for special
8 highlighting of grouping keywords.
9
12008-03-02 Juri Linkov <juri@jurta.org> 102008-03-02 Juri Linkov <juri@jurta.org>
2 11
3 * startup.el: Revert 2008-02-28 change that adds initial message 12 * startup.el: Revert 2008-02-28 change that adds initial message
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index 616cb9e9ee7..78376f861f0 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -115,9 +115,9 @@
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.")
@@ -531,6 +531,15 @@ to see the effect as font color choices are cached by Emacs."
531 :type 'boolean) 531 :type 'boolean)
532(put 'verilog-highlight-p1800-keywords 'safe-local-variable 'verilog-booleanp) 532(put 'verilog-highlight-p1800-keywords 'safe-local-variable 'verilog-booleanp)
533 533
534(defcustom verilog-highlight-grouping-keywords nil
535 "*True means highlight grouping keywords 'begin' and 'end' more dramatically.
536If 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
538grouping 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-p1800-keywords 'safe-local-variable verilog-booleanp)
542
534(defcustom verilog-auto-endcomments t 543(defcustom verilog-auto-endcomments t
535 "*True means insert a comment /* ... */ after 'end's. 544 "*True means insert a comment /* ... */ after 'end's.
536The name of the function or case will be set between the braces." 545The name of the function or case will be set between the braces."
@@ -1899,14 +1908,17 @@ See also `verilog-font-lock-extra-types'.")
1899 ;; Fontify all builtin keywords 1908 ;; Fontify all builtin keywords
1900 (concat "\\<\\(" verilog-font-keywords "\\|" 1909 (concat "\\<\\(" verilog-font-keywords "\\|"
1901 ;; And user/system tasks and functions 1910 ;; And user/system tasks and functions
1902 "\\$[a-zA-Z][a-zA-Z0-9_\\$]*" 1911 "\\$[a-zA-Z][a-zA-Z0-9_\\$]*"
1903 "\\)\\>") 1912 "\\)\\>")
1904 ;; Fontify all types 1913 ;; Fontify all types
1905 (cons (concat "\\(\\<" verilog-font-grouping-keywords "\\)\\>") 1914 (if verilog-highlight-grouping-keywords
1906 'verilog-font-lock-ams-face) 1915 (cons (concat "\\<\\(" verilog-font-grouping-keywords "\\)\\>")
1907 (cons (concat "\\<\\(" verilog-type-font-keywords "\\)\\>") 1916 'verilog-font-lock-ams-face)
1908 'font-lock-type-face) 1917 (cons (concat "\\<\\(" verilog-font-grouping-keywords "\\)\\>")
1909 ;; Fontify IEEE-P1800 keywords appropriately 1918 'font-lock-type-face))
1919 (cons (concat "\\<\\(" verilog-type-font-keywords "\\)\\>")
1920 'font-lock-type-face)
1921 ;; Fontify IEEE-P1800 keywords appropriately
1910 (if verilog-highlight-p1800-keywords 1922 (if verilog-highlight-p1800-keywords
1911 (cons (concat "\\<\\(" verilog-p1800-keywords "\\)\\>") 1923 (cons (concat "\\<\\(" verilog-p1800-keywords "\\)\\>")
1912 'verilog-font-lock-p1800-face) 1924 'verilog-font-lock-p1800-face)