VHDL signal'event vs signal = '1' highlighting

Syntax highlighting, code folding, brace matching, code indenting, and function list

VHDL signal'event vs signal = '1' highlighting

Postby dspdog » Mon Dec 18, 2006 3:20 pm

I'm looking for a way to properly highlight the signal'event or any of the many 'parameter qualifiers in VHDL. Currently my wordfile correctly highlights things within single ticks such as '1' but with signal'event and others it highlights until the next signal'event. Has anyone solved this issue ???

Thanks
User avatar
dspdog
Newbie
 
Posts: 2
Joined: Mon Dec 18, 2006 12:00 am

Re: VHDL signal'event vs signal = '1' highlighting

Postby Mofi » Mon Dec 18, 2006 3:38 pm

At [VHDL] Syntax Highlighting example a wordfile for syntax highlighting is posted.

You can see there that only the double quote character is specified as String Chars = in the first line. I guess, in your language definition for VHDL either String Chars = is missing or " and ' are defined as string characters. Remove ' from this definition.

Additionally you should insert in the first line for example between Nocase and String Chars = the keyword DisableMLS (with exactly this spelling!). This keyword disables multi-line string highlighting. Well, I'm not a VHDL programmer, so I don't know if VHDL supports multi-line strings or not.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4062
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: VHDL signal'event vs signal = '1' highlighting

Postby dspdog » Mon Dec 18, 2006 5:22 pm

Mofi,

Thanks a LOT the DisableMLS works great, my wife and I have been wanting to visit the Danube river in Austria for a long time now. Maybe some day!

Greetings from Boston, USA.
User avatar
dspdog
Newbie
 
Posts: 2
Joined: Mon Dec 18, 2006 12:00 am


Return to Syntax Highlighting