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 except multiple types in recognization (verilog-typedef-regexp) #1875

Closed szkarn closed 1 month ago

szkarn commented 1 month ago

Hello, Does anyone knows how to fill in the verilog-typedef-regexp when multiple types needed to be excepted? I had searched the helps and Issues, but not figure it out.

The most I found is single type like below: // Local Variables: // verilog-typedef-regexp:"_t$" // End:

wsnyder commented 1 month ago

It's an Emacs Regular Expression

You then need to backslash quote any backslashes as it's an Emacs string.

// verilog-typedef-regexp:"\\(_fooa\\|_t\\)$"
szkarn commented 1 month ago

Get it. Thanks so much