Skip to content

Commit

Permalink
Fix use of verilog-font-lock-grouping-keywords-face' when verilog-h…
Browse files Browse the repository at this point in the history
…ighlight-grouping-keywords' set.

	* verilog-mode.el (verilog-font-lock-grouping-keywords-face)
	(verilog-highlight-grouping-keywords): Fix use of face when
	`verilog-highlight-grouping-keywords' set.  Reported by Jeff
	Pompa.
  • Loading branch information
wsnyder committed May 7, 2015
1 parent 9f4fa75 commit 9797a27
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions verilog-mode.el
Expand Up @@ -706,9 +706,10 @@ to see the effect as font color choices are cached by Emacs."

(defcustom verilog-highlight-grouping-keywords nil
"Non-nil means highlight grouping keywords more dramatically.
If false, these words are in the `font-lock-type-face'; if True then they are in
`verilog-font-lock-ams-face'. Some find that special highlighting on these
grouping constructs allow the structure of the code to be understood at a glance."
If false, these words are in the `font-lock-type-face'; if True
then they are in `verilog-font-lock-grouping-keywords-face'.
Some find that special highlighting on these grouping constructs
allow the structure of the code to be understood at a glance."
:group 'verilog-mode-indent
:type 'boolean)
(put 'verilog-highlight-grouping-keywords 'safe-local-variable 'verilog-booleanp)
Expand Down Expand Up @@ -3011,10 +3012,10 @@ See also `verilog-font-lock-extra-types'.")
(defface verilog-font-lock-grouping-keywords-face
'((((class color)
(background light))
(:foreground "red4" :bold t ))
(:foreground "Purple" :bold t ))
(((class color)
(background dark))
(:foreground "red4" :bold t ))
(:foreground "orange1" :bold t ))
(t (:italic t)))
"Font lock mode face used to highlight verilog grouping keywords."
:group 'font-lock-highlighting-faces)
Expand Down Expand Up @@ -3124,7 +3125,7 @@ See also `verilog-font-lock-extra-types'.")
;; Fontify all types
(if verilog-highlight-grouping-keywords
(cons (concat "\\<\\(" verilog-font-grouping-keywords "\\)\\>")
'verilog-font-lock-ams-face)
'verilog-font-lock-grouping-keywords-face)
(cons (concat "\\<\\(" verilog-font-grouping-keywords "\\)\\>")
'font-lock-type-face))
(cons (concat "\\<\\(" verilog-type-font-keywords "\\)\\>")
Expand Down

0 comments on commit 9797a27

Please sign in to comment.