parsing comments in scripts
Alex Tweedly
alex at tweedly.net
Sat Dec 11 07:38:59 EST 2004
At 14:39 10/12/2004 -0700, Dar Scott wrote:
>Don't forget special parsing for this:
>
>format("..."
There's another special case to deal with; I just discovered the Tip in
FAQ / How do I temporarily remove a portion of a script?
that says
> Tip: You can comment out an entire handler by commenting out its first
> line.
So does that mean that the rest of the handler IS a comment (and should be
stripped out) or not ?
Script colorizer doesn't think so - it colors the first line but not the rest.
Script formatter does think so - it formats the rest of the handler flush left.
Sadly, it turns out that the Tip is wrong - doing this does NOT comment out
the rest of the handler; all it does is make it impossible to call the
handler (this is not the same thing !!)
Bugzilla 2468 has been entered.
So I think you're free to deal with it almost any way you choose :-) - but
you probably should deal with it explicitly.
-- Alex.
More information about the use-livecode
mailing list