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: Re: Highlighting problems
- Message-ID: <50950@shamash.cdc.com>
- Date: 31 Dec 92 00:28:31 GMT
- References: <1992Dec26.001926.26263@nntpd.lkg.dec.com> <50856@shamash.cdc.com> <1992Dec28.211836.24522@nntpd.lkg.dec.com>
- Organization: Control Data Corporation, Arden Hills, MN
- Lines: 31
-
- In article <1992Dec28.211836.24522@nntpd.lkg.dec.com> tatlow@athena.lmo.dec.com writes:
- >>(defun. From the lisp I have looked at, I believe that defun is usually on
- >>a line by itself.
- >
- >Yes, defun usually starts a line, but it's not required to be at
- >the beginning. The problem is with the whole package (or at least
-
- Please note that I did NOT say that defun was required or even usually at the
- "beginning" of a line. I said it was usually on a line by itself. My
- regular expression also did not require defun to be at the beginning of a
- line - just the first thing encountered on a line.
- (^ *(defun, nil, hilit2)
- This would hilit the defun line to the end of line OR, if a comment was
- encountered, until the comment started. The comment would be hilited in the
- usual comment color.
-
- The converse, however would not be true. I.E. if the line started with the
- comment syntax, encountering a defun would not be hilited in the defun color.
- The entire line would be hilited in the comment color.
-
- I believe the above behavior is what is desired.
-
- The only problem would be if a comment start sequence was embedded somewhere
- in quoted text in a defun line (or any other function line). This would
- incorrectly be hilited as a comment. But this problem could occur anywhere,
- I believe.
-
- ********************************************************************
- * Jim Dahlberg Computing Devices International *
- * bjdunlop@shamash.cdc.com A Ceridian Company *
- ********************************************************************
-