Article View: gnu.epoch.misc
Article #399Lightbrite.el and comments
From: ddw for rubis at horizon
Date: Wed, 23 Dec 1992 10:14
Date: Wed, 23 Dec 1992 10:14
35 lines
1518 bytes
1518 bytes
I have been looking at Marc's package and found it very nice.
I would have loved if it had worked right away on prolog code where
there are (at least :-) 2 styles of comments:
% up to eol
and /* */
(The problem should also appear in C++ I think).
As the code is, it only highlights the first line of a comment
starting with /*
In my attempt to find why, I looked at syntax-decode.el and
understood (or maybe I did not). The mechanism describing comments in
the syntax tables is not sufficient to provide an exact view of
comments when there are several possibilities.
What I think is needed is some way to determine what is the
end-of-comment-regexp given a start-of-comment-string that we found.
(or the reverse if scanning backwards).
Has anyone worked on a more or less general solution to this problem?
I'd be interested in any pointer to a solution.
Thanks,
Dominique
--
==============================================
Dominique de Waleffe ddw@sunbim.be
BIM sa
Kwikstraat 4 Tel: +32 2 719 26 12
B-3078 Everberg Tel: +32 2 725 47 83
Belgium
Technical Details
Message-ID:
<DDW2.92Dec23112236@jacobi.sunbim.be>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!ub4b!sunbim!usenetShow Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ub4b!sunbim!usenet From: ddw2@sunbim.be (ddw for rubis at horizon) Subject: Lightbrite.el and comments Message-ID: <DDW2.92Dec23112236@jacobi.sunbim.be> Lines: 35 Sender: usenet@sunbim.be (user news) Organization: BIM sa/nv, Everberg, Belgium X-Newsreader: GNU Emacs 4.2.5, GNUS 3.13, NNTP 3.10 Date: Wed, 23 Dec 92 10:14:51 GMT