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

how to omit more port when autoinst by regex #1853

Closed zhanjf closed 5 months ago

zhanjf commented 5 months ago

Hi, I found this example, it works,

/* sub  sub1
       (/*AUTOINST("?!ia")*/
`ifdef NEVER
        .ignore1,
        .ignore2,
         ...
`endif
);
*/

But I want to omit more port like ia, ib , ic. how to write this regex? I tried like ?!(ia|ib|ic), it did not work.

Thanks.

wsnyder commented 5 months ago

It's an Emacs Regular Expression

/*AUTOINST("\(ia\|ib\)")*/

zhanjf commented 5 months ago

Thanks