home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 21 Jan 1993 13:26:05 EST
- Return-Path: <digi.lonestar.org!mbattagl>
- Date: Thu, 21 Jan 1993 12:10:09 CST
- From: mbattagl@digi.lonestar.org (Mike Battagl)
- Message-ID: <9301211810.AA04529@enterprise-gw>
- Subject: hilit bug.....
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 37
-
-
- The regexp for c++ comments in lhilit can freeze emacs. Well ^g will get you out...
-
- if you have a comment like this:
-
- //********* this is a comment *******
-
- When you do a ^C^H emacs is frozen until a ^g
-
-
- I corrected my c++-mode-hilit 'c-style-comment' to:
-
- ("[^/]/\\*" "\\*/" hilit0)
-
- and that corrects the problem.
-
-
-
- It would also seem that no matter what regexp you use, hilit should not freeze.
- When the end of the buffer is reached and the 'end' regexp is not reached then it should
- give up. I don't know if you highlight the region or not (if you do it may be easier to
- find the problem) but, you should not freeze. I have found other regexp that does the
- same thing. I one case I have no idea where the problem is.
-
- One other point deals with comments. It seems that there should be a special
- entry for comments (based on comment-start and comment-end), then all other highlighting
- should NOT take place in comments.
-
-
-
- Thanks,
-
- Mike Battaglia
- Dsc Communications Corp.
- (214) 519-3253
- mbattagl@dsccc.com
-
-