home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / lucidem / help / 812 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!timbuk.cray.com!shamash!bjdunlop
  2. From: bjdunlop@shamash.cdc.com (Bruce Dunlop)
  3. Newsgroups: alt.lucid-emacs.help
  4. Subject: Need help with lhilit regular expression
  5. Keywords: lhilit
  6. Message-ID: <50683@shamash.cdc.com>
  7. Date: 19 Dec 92 02:49:16 GMT
  8. Distribution: usa
  9. Organization: Control Data Systems Inc., Arden Hills, MN
  10. Lines: 18
  11.  
  12. I am trying to make lhilit handle verilog comments.  One comment syntax
  13. is //,  which indicates a comment from the current column to the end of
  14. the current line.  The other comment syntax is like C, /* ...*/.
  15.  
  16. I got the // hilit to work fine, but the /* ... */ hilit that I copied
  17. from the c-mode has a problem with comments like:
  18.     //*********************
  19. which we use to separate sections of code.  The // makes it a one line
  20. comment in verilog, but the /* makes it look like a block comment to lhilit.
  21. But there is no matching */, so lhilit gets stuck until I do a ^G abort.
  22.  
  23. Is there a way to make lhilit not interpret //* as the beginning of a block
  24. comment?
  25.  
  26. ********************************************************************
  27. *   Jim Dahlberg         Computing Devices International   *
  28. *   bjdunlop@shamash.cdc.com        A Ceridian Company         *
  29. ********************************************************************
  30.