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
261 stars 91 forks source link

Restart alignment after empty or comments lines #960

Closed veripoolbot closed 2 years ago

veripoolbot commented 9 years ago

Author Name: Enzo Chi Original Redmine Issue: 960 from https://www.veripool.org


Currently the verilog-mode would try to align the signal name in the declaration with the port name as below:

     module img_cnt(
                    logic clk,
                    logic rst,
                    logic frame_vld,
                    logic line_vld,
                    logic data_vld
                    );

        // Expect to restart the alignment from here
        int unsigned      frame_cnt = 0;
        int unsigned      line_cnt = 0;
        int unsigned      data_cnt = 0;

But I think the declaration should has its own alignment (aligned '=' as bonus).

     module img_cnt(
                    logic clk,
                    logic rst,
                    logic frame_vld,
                    logic line_vld,
                    logic data_vld
                    );

        // Expect to restart the alignment from here
        int unsigned frame_cnt = 0;
        int unsigned line_cnt  = 0;
        int unsigned data_cnt  = 0;

So is it possible to add some variables to control restart the alignment after empty lines or comment lines?

veripoolbot commented 6 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2017-11-19T13:27:53Z


Still a problem, perhaps someone would like to contribute a patch?