home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / epoch / misc / 1217 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.4 KB  |  47 lines

  1. Newsgroups: gnu.epoch.misc
  2. Path: sparky!uunet!mcsun!ub4b!sunbim!usenet
  3. From: ddw2@sunbim.be (ddw for rubis at horizon)
  4. Subject: Lightbrite.el and comments
  5. Message-ID: <DDW2.92Dec23112236@jacobi.sunbim.be>
  6. Lines: 35
  7. Sender: usenet@sunbim.be (user news)
  8. Organization: BIM sa/nv, Everberg, Belgium
  9. X-Newsreader: GNU Emacs 4.2.5, GNUS 3.13, NNTP 3.10
  10. Date: Wed, 23 Dec 92 10:14:51 GMT
  11.  
  12.  
  13. I have been looking at Marc's package and found it very nice. 
  14. I would have loved if it had worked right away on prolog code where
  15. there are (at least :-) 2 styles of comments:
  16.          % up to eol
  17. and      /*   */ 
  18. (The problem should also appear in C++ I think).
  19.  
  20. As the code is, it only highlights the first line of a comment
  21. starting with /*
  22.  
  23. In my attempt to find why, I looked at syntax-decode.el and
  24. understood (or maybe I did not). The mechanism describing comments in
  25. the syntax tables is not sufficient to provide an exact view of
  26. comments when there are several possibilities.
  27.  
  28. What I think is needed is some way to determine what is the
  29. end-of-comment-regexp given a start-of-comment-string that we found.
  30. (or the reverse if scanning backwards). 
  31.  
  32. Has anyone worked on a more or less general solution to this problem?
  33. I'd be interested in any pointer to a solution.
  34.  
  35.  
  36. Thanks,
  37.  
  38. Dominique
  39.  
  40. --
  41. ==============================================
  42. Dominique de Waleffe             ddw@sunbim.be
  43. BIM sa
  44. Kwikstraat 4             Tel: +32 2 719 26 12
  45. B-3078 Everberg             Tel: +32 2 725 47 83
  46. Belgium
  47.