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

Fix indention for restrict_property_statement #1836

Closed pbing closed 10 months ago

pbing commented 10 months ago

verilog-indent-buffer for restrict_property_statement leads to wrong indention:

module tb1;
   a: restrict property (1);
      b: assume property (1);
      c: assume property (1);
      endmodule

It should be:

module tb1;
   a: restrict property (1);
   b: assume property (1);
   c: assume property (1);
endmodule

verilog-mode version 2023-06-06-86c6984-vpo-GNU

wsnyder commented 10 months ago

Perhaps you could contribute a pull request to fix this?

acr4 commented 10 months ago

See PR #1838 for a proposed solution.

kzhang70 commented 8 months ago

The fix does NOT work if property is not in the same line as the label.

module tb1; a: restrict property (1); b: assume property (1); c: assume property (1); endmodule