parsing comments in scripts
Ken Ray
kray at sonsothunder.com
Mon Dec 13 14:43:16 EST 2004
On 12/13/04 10:15 AM, "Dar Scott" <dsc at swcp.com> wrote:
>
> On Dec 13, 2004, at 7:12 AM, Ken Ray wrote:
>
>> perhaps commenting out the first line automatically
>> comments out the whole handler? That is, when you close and reopen the
>> script the handler is fully commented?
>
> Like this?
>
> -- I wrote this
> -- on Christmas day
> -- when others were at play.
> local a
> on work
> local moss
> put a
> end work
> local b
>
> ==>
>
> -- I wrote this
> -- -- on Christmas day
> -- -- when others were at play.
> -- local a
> -- on work
> -- local moss
> -- put a
> -- end work
> local b
No, like this:
-- on work
local moss
put a
end work
==>
-- on work
-- local moss
-- put a
-- end work
> The technique of commenting out the first line to disable the handler
> does not work in Transcript.
You've said this a couple of times, but I have handlers where the first line
is commented and the handler *is* disabled. Can you give an example of where
this is not true?
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list