comment character only at beginning of line (was Re: creating temp file)

New Message Reply Date view Thread view Subject view Author view

From: Albert Chou (Al_Chou@CYBERDUDE.COM)
Date: 26 May 00, 06:36 EST


From: Albert Chou <Al_Chou@CYBERDUDE.COM>
Subject:      comment character only at beginning of line (was Re: creating temp file)

--- "Paul J. Schinder" <schinder@POBOX.COM> wrote:
> At 11:10 PM -0600 5/24/00, Vince Darley wrote:
> 
> } > One more thing: The language for which I am developing my mode uses
> } > the * character to signal a comment, but only when it appears at the
> } > beginning of a line (* also serves as a multiplication operator).  Is
> } > there an easy way to get Alpha to color (as a comment) text following
> } > * only when * appears at the beginning of a line?
> }
> } Sounds tricky.  I'm not sure there is.  Maybe there's something clever you
> } could do, but nothing obvious to me.
> 
> That's exactly the same as Fortran.  Although 7.3's Fortran mode doesn't do
> * comments properly (I just checked), it does do c comments properly, and
> of course doesn't mess up c's elsewhere.  I'd suggest looking at Fortran
> mode to see how it's done.
> 
> }
> } Vince.


I've had a look at Fortran mode and don't really like the way it's designed. 
It may be working around what looks to me like Alpha's built-in design
limitations regarding comments, but I don't think it does a great job of it,
and it's not very flexible.  The bottom line is that I'm not sure Fortran mode
is a good example to follow (if I were better at Tcl I might be able to figure
out a better way to do it, but alas, I'm not).  I had an email conversation
with Tom Pollard, the mode's author, a few weeks ago about a different aspect
of the mode.  He's no longer actively supporting it, unfortunately, and kind of
gave me permission to submit my suggestions to the Cabal if I felt they worked
and didn't mess anything else up.



Al
-- 
Albert Davidson Chou

Get answers to Mac questions at http://www.mac-mgrs.org/ .


___________________________________________________________________________
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:51 EST