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
247 stars 90 forks source link

Add variable to adjust aligned comment distance in declarations. #1779

Closed gmlarumbe closed 2 years ago

gmlarumbe commented 2 years ago

Hi,

This PR adds the customizable variable verilog-declaration-comments-distance to adjust the spacing between the longest declaration and the beginning of aligned comments, previously fixed to 1 space.

I also added two tests, similar to the align_decl_comments.sv test, but with spacing set to 0 and 10 respectively.