Page 1 of 1

Using ## as a comment indicator

Posted: Fri Aug 24, 2012 4:11 am
by marksmithhfx
Hi Bill, looks like I got started using ## as a comment indicator somewhere along the way (similar to the way -- and // are usually paired). Any chance lcTaskList could have that specified as an option?

Thanks

-- Mark

Re: Using ## as a comment indicator

Posted: Fri Aug 24, 2012 8:22 am
by bvlahos
The LiveCode standard for the pound sign is only one. The other symbols "--" and "//" are in pairs.

Essentially you are making the extra pound sign part of the comment. I could make the change but I'll have to think about any unintended consequences of non-standard comments.

Re: Using ## as a comment indicator

Posted: Fri Aug 24, 2012 11:16 am
by shaosean
Does not support /* */ type comments either, and those are standard ;-)

Re: Using ## as a comment indicator

Posted: Sat Aug 25, 2012 4:12 pm
by bvlahos
True but I don't think it makes sense to do it in the comment block. In the example below I would have to keep track of any of the index words inside the entire block.

/*
This is the comment block
MARK the text in a comment
*/

I could add /* and */ but the index words would have to be right after. Example: /*MARK

Indexing the word inside the block would be difficult.

Let me know if it makes sense to index inside the comment block. It doesn't to me because you could do.

/*
This is the comment block
--MARK the text in a comment
*/

Re: Using ## as a comment indicator

Posted: Mon Aug 27, 2012 2:22 am
by shaosean
I was actually just being a pain in the butt :-P