Verilog syntax highlighting

Eric Bouyoux eric.bouyoux at insidefr.com
Thu Dec 7 09:19:46 CET 2006


   Thorsten Haude a écrit :

Hi,

* Eric Bouyoux wrote (2006-12-06 17:06):
  

I would like that the following expressions to appear with a different
color in Verilog language.

(...)

D_TCD_tri    #(.cellSize(IP_DATA_WIDTH), .testEnable_hold_11(0))   
    

This matches your line:
    (#\([^)]+?(\([^)]+\)[^)]*?)*\))

The (\([^)]+\)[^)]*?)* part is new. It matches any number of pairs of
parens with content, followed by possible other stuff. Also, watch the
non-greedy quantifier.
  

   This is exactly what I wanted. Thank you very much.
   Eric.


Thorsten                                                  Radiohead: Airbag
  


More information about the Discuss mailing list