veripool / verilog-mode

Verilog-Mode for Emacs with Indentation, Hightlighting and AUTOs. Master repository for pushing to GNU, verilog.com and veripool.org.
http://veripool.org/verilog-mode
GNU General Public License v3.0
256 stars 90 forks source link

Improve fontification of variables #1807

Closed gmlarumbe closed 2 years ago

gmlarumbe commented 2 years ago

Hi,

This PR includes 2 commits.

First one fixes a bug in the highlighting of variables inside task and function arguments.

Before the fix:

fontify_before_pr

After the fix:

fontify_after_pr

Second commit adds the variable verilog-fontify-variables to enable/disable fontification of variables, as suggested in #1752:

And while I'm here, it would be really nice to be able to disable fontifying the variable names in declarations without having to locate and comment out the code in the LISP as I did below to make it stop doing this.

The variable verilog-fontify-variables defaults to t to keep backwards compatibility.

Thanks!