This PR fixes an issue in #1526 .
When a NOHOOKUP comment is added to an input port which is the last input port in the instantiated module, then each invocation of verilog-mode would append yet another "Templated
AUTONOHOOKUP" comment over and over.
This PR fixes an issue in #1526 . When a NOHOOKUP comment is added to an input port which is the last input port in the instantiated module, then each invocation of verilog-mode would append yet another "Templated AUTONOHOOKUP" comment over and over.
For example: a3.v
After 3 consecutive invocations would yield (please notice you have to right-scroll to see the issue):
After this fix, any number of invocations would always yield: