home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!timbuk.cray.com!shamash!bjdunlop
- From: bjdunlop@shamash.cdc.com (Bruce Dunlop)
- Newsgroups: alt.lucid-emacs.help
- Subject: Need help with lhilit regular expression
- Keywords: lhilit
- Message-ID: <50683@shamash.cdc.com>
- Date: 19 Dec 92 02:49:16 GMT
- Distribution: usa
- Organization: Control Data Systems Inc., Arden Hills, MN
- Lines: 18
-
- I am trying to make lhilit handle verilog comments. One comment syntax
- is //, which indicates a comment from the current column to the end of
- the current line. The other comment syntax is like C, /* ...*/.
-
- I got the // hilit to work fine, but the /* ... */ hilit that I copied
- from the c-mode has a problem with comments like:
- //*********************
- which we use to separate sections of code. The // makes it a one line
- comment in verilog, but the /* makes it look like a block comment to lhilit.
- But there is no matching */, so lhilit gets stuck until I do a ^G abort.
-
- Is there a way to make lhilit not interpret //* as the beginning of a block
- comment?
-
- ********************************************************************
- * Jim Dahlberg Computing Devices International *
- * bjdunlop@shamash.cdc.com A Ceridian Company *
- ********************************************************************
-