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

Wrong indentation after SV streaming statement #1516

Closed veripoolbot closed 4 years ago

veripoolbot commented 4 years ago

Author Name: Enze Chi Original Redmine Issue: 1516 from https://www.veripool.org


I just found wrong indentation after SV streaming state

     module test (input logic clk,
                  input logic a,
                  output logic c,
                  output byte  d[4]);

         always_ff @(posedge clk) begin
             if (a == 1'b1) begin
                 data <= {<<byte{$urandom()}};
             c <= data[1] > 8'h0f;
         end
         end
     endmodule // test

The expected indentation should be:

module test (input logic clk,
              input logic a,
              output logic c,
              output byte  d[4]);

     always_ff @(posedge clk) begin
         if (a == 1'b1) begin
             data <= {<<byte{$urandom()}};
             c <= data[1] > 8'h0f;
         end
     end
endmodule // test
veripoolbot commented 4 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2019-12-21T15:15:26Z


Perhaps someone would like to contribute a patch?