Skip to content

Commit 75abe7a

Browse files
committed
Add option to enable/disable variable fontification.
* verilog-mode.el (Line#939, verilog-declaration-varname-matcher, verilog-fontify-variables, verilog-submit-bug-report): Add option to enable/disable variable fontification. Signed-off-by: Gonzalo Larumbe <[email protected]>
1 parent 03f0c08 commit 75abe7a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

verilog-mode.el

+9-1
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,12 @@ always be saved."
932932
:type 'boolean)
933933
(put 'verilog-auto-star-save 'safe-local-variable #'verilog-booleanp)
934934

935+
(defcustom verilog-fontify-variables t
936+
"Non-nil means fontify declaration variables."
937+
:group 'verilog-mode-actions
938+
:type 'boolean)
939+
(put 'verilog-fontify-variables 'safe-local-variable #'verilog-booleanp)
940+
935941
(defvar verilog-auto-update-tick nil
936942
"Modification tick at which autos were last performed.")
937943

@@ -3743,7 +3749,8 @@ This function moves POINT to the next variable within the same declaration (if
37433749
it exists).
37443750
LIMIT is expected to be the pos at which current single-declaration ends,
37453751
obtained using `verilog-single-declaration-end'."
3746-
(when (not (member (thing-at-point 'symbol) verilog-keywords))
3752+
(when (and verilog-fontify-variables
3753+
(not (member (thing-at-point 'symbol) verilog-keywords)))
37473754
(let (found-var old-point)
37483755
;; Remove starting whitespace
37493756
(verilog-forward-ws&directives limit)
@@ -15501,6 +15508,7 @@ Files are checked based on `verilog-library-flags'."
1550115508
verilog-compiler
1550215509
verilog-coverage
1550315510
verilog-delete-auto-hook
15511+
verilog-fontify-variables
1550415512
verilog-getopt-flags-hook
1550515513
verilog-highlight-grouping-keywords
1550615514
verilog-highlight-includes

0 commit comments

Comments
 (0)