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

Fix indentation of instances and declarations after 'begin' #1782

Closed gmlarumbe closed 1 year ago

gmlarumbe commented 1 year ago

Hi,

While working on PR #1780 I noticed that a declaration that should get aligned for indent_replicate.v actually did not. After a bit of debugging I found the issue was caused by the declaration being right after the begin keyword if verilog-indent-lists was set to t (its default value).

I applied part of the changes of 2adbba2 also for verilog-indent-lists set to t and it happened to also fix the indent_genmod.v test mentioned in #1163. Even though that issue shows as closed it seems this test was still broken, but it would be nice if it could be confirmed.

Thanks!