lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Yes, but remove the "--" from the end of the initial multiline
comment, and it assumes that the comment continues until the end of
the first single line comment.

On Tue, Apr 14, 2009 at 5:40 PM, Patrick Donnelly <batrick@batbytes.com> wrote:
> On Tue, Apr 14, 2009 at 10:04 AM, Peter Cawley <lua@corsix.org> wrote:
>> A multiline comment ends at the ]], like a long string does. The
>> parser seems to assume that a multiline comment ends with ]]--
>
> The multi-line comment ended at "]]", the "--" starts a new one line comment.
>
> --
> -Patrick Donnelly
>
> "One of the lessons of history is that nothing is often a good thing
> to do and always a clever thing to say."
>
> -Will Durant
>