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

connectmodule/endconnectmodule support #1665

Closed danmcmahill closed 4 years ago

danmcmahill commented 4 years ago

AMS defines connectmodule/endconnectmodule which work pretty much the same way as module/endmodule but for connect modules instead of normal modules. This adds support to get proper syntax highlighting, indentation, and adding of comments.

I was only able to test with emacs (GNU Emacs 26.1) as an unmodified clone failed to build under xemacs (21.5).

wsnyder commented 4 years ago

Thanks for providing a patch for this.

If you search for module (sometimes M is not part of it) it looks like there's spots that should have been patched also:

danmcmahill commented 4 years ago

Thanks Wilson. I think I've addressed the issues you pointed out. I added two simple checks. One checks that indenting works and the other makes sure labeling of endconnectmodule // <name> works. Those are likely the biggest care abouts. The good news is connect modules tend to be relatively short and without hierarchy. But having indenting work is huge.

wsnyder commented 4 years ago

Merged, thanks for this.